You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by vov <vo...@mail.ru> on 2010/06/22 12:33:31 UTC
Re: how to extend wicket components from base page
Try to change your Base Constructor to:
public ContainerTemplate(String containerClass, String containerStyle)
{
this.containerClass = containerClass;
this.containerStyle = containerStyle;
// Your code
}
...and in your nested page call super("your_container_class",
"your_container_style")
Also you can create method in your ContainerTemplate class:
protected void update(AjaxRequestTarget target)
{
outerDiv.add(new SimpleAttributeModifier("class", getContainerClass()));
outerDiv.add(new SimpleAttributeModifier("style", getContainerStyle()));
target.addComponent(outerDiv);
}
and call this method from Nested Page(use AjaxButton for example) after
changing your style
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-extend-wicket-components-from-base-page-tp2263727p2263910.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org