There are actually many ways to what you want:
1) use fragments. to be used during the construction of the containing
component
2) utilize isVisible()
add( new Label( "myLabel" ) {
public boolean isVisible() {
return (if equal to my condition);
}
} );
This way dynamically adjusts the display without having to recreate the
containing component. The drawback is that it is always added to the
component hierarchy (but is that a drawback ;-)
I am sure there are other ways but these I have used to date.
- Doug
--
View this message in context:
http://www.nabble.com/Conditional-markup-tp16048105p16048355.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]