You can try using a TransparentWebMarkupContainer so that you won't always have to add them to the page hierarchy and only override your factory methods when you need to.
For a code-snippet example see this thread: http://apache-wicket.1842946.n4.nabble.com/1-5-6-0-dynamically-named-CSS-JS- amp-images-resources-tc4650635.html#a4650638 ~ Thank you, Paul Bors -----Original Message----- From: divad91 [mailto:diva...@hotmail.com] Sent: Monday, July 23, 2012 12:40 PM To: users@wicket.apache.org Subject: Re: Wicket Layout Design Thanks Jesse for your reply. The only drawback of this method is that I will need to override theses 3 methods (createNewHeader, createNewFooter...) in all pages that extends "BasePage.java".Ideally I would like to avoid copying code but I think it's the cleaner way to override layout components. Thanks again ! David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Layout-Design-tp4650630p46 50734.html Sent from the Users forum 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org