I am sure there are a couple of ways to do this.

First thing that comes to mind is to override the Panel2.isVisible() method
and return true if there are any nodes selected in CBTree1.

for instance:

Panel checkBoxPanel2 = new Panel( "checkBoxPanel2" ) {
    public boolean isVisible() {
         return /** cbTree1 Selection State **/;

To determine the cbTree1 Selection State, either you iterator through the
entire tree to determine if a node is selected via the TreeState or capture
the number of nodes selected/deselected via TreeStateListener.

By overridding isVisible(), no matter if you are refreshing the entire page
or via Ajax, the checkBoxPanel2 visibility would be handled correctly.

Hope that helps.
- Doug
View this message in context: 
Sent from the Wicket - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to