I tell people that I think you should let your Model and Model backing
object control the look and feel/display/content of your components.
Even visibility should be delegated to the model or model object and not
set by the component. Am I wrong here?
I use this approach (only work with the Model/ModelObject) as opposed to
monkeying with the wicket internal(seemingly) methods like
onComponentTag or adding javascript to control the look feel or tags?
E.g.
MyComponent {
isVisible() {
getModelObject().isVisible();
}
isEnabled() {
getModelObject().isEnabled();
}
}
Berlin Brown