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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org