On Sep 7, 2007, at 8:52 PM, Carlos Pita wrote:
You can also make the components to hide implement some listener (or
just marker) interface X and then do a visitChildren traversal from
page.onBeforeRender as follows:
visitChildren(X.class, new IVisitor() {
public Object component(Component component) {
comp.setVisible(your visibility logic here);
}
});
This is less centralized that keeping a list at the top level, if you
care about this.
Regards,
Carlos
Damn. I just now recommended the same thing. Sorry, didn't notice
your post.
This approach definitely seems cleaner than managing a list of
component references -- I wonder if it works for Scott...
-Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]