tree grid selection question

John Mazzitelli mazz at redhat.com
Sat Oct 23 20:26:49 UTC 2010


Look at the auto-discovery queue view in the GWT UI.

Notice that you cannot select JUST a platform (without selecting at 
least one of the children). If you select a platform checkbox, all of 
its children are auto-selected. If you de-select all the children, the 
platform itself is auto-deselected. There is no way to get JUST the 
platform checked with none of its children checked.

We need a way to say "I only want to import the platform, but I do not 
want to import any child servers" (we just hit another user yesterday 
that wanted to do this - it worked for them because they were on an old 
RHQ version and the jsf pages let you do this).

In ResourceAutodiscoveryView, I see it builds the TreeGrid with these 
settings:

         treeGrid.setShowPartialSelection(true);
         treeGrid.setCascadeSelection(true);

It seems that turning off the cascade selection will technically do what 
I want (setCascadeSelection(false)). However, we are then at a point 
where if I DO want every server under a platform imported, I can't just 
select the platform - I have to select each child node individually 
(which could potentially be a lot of individual clicks).

Thus, I want the best of both worlds :) Any one know a good GWT trick to 
do this?


More information about the rhq-devel mailing list