Just use regular OO design.  Maybe you could add them both in your parent
class, based on a boolean condition that is an abstract method.  Then your
child classes only have to override includePageClock() method, for example.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Mar 31, 2009 at 2:10 AM, ptrash <[email protected]> wrote:

>
>
> Serkan Camurcuoglu-3 wrote:
> >
> > search for the words "wicket markup inheritance" on google..
> >
>
>
> Hi,
>
> isn't there another way besides using inheritance? If e.g. I extend my page
> two times: add a menu bar to it (pageMenu) and add a clock to it
> (pageClock). Now I need a page which has both, clock and menu
> (pageMenuAndClock). I can just extend pageMenu or pageClock. So the
> functionality of one of them has to be rewritten in pageMenuAndClock.
> --
> View this message in context:
> http://www.nabble.com/Extend-layout-of-a-page-tp22784265p22799536.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]
>
>

Reply via email to