It doesn't sound like you're trying to "inherit" anything, not in the
object-oriented sense of the term. Instead you just want to use different
markup for a page dependent on some criteria.

Wicket already does this for localised versions of a page.
HomePage.html
HomePage_de.html
HomePage_fr.html
etc.

Wicket will select the variation here by default based on the locale of your
session (picked up from the browser's language headers). However, you can
trivially override how this works by overriding the getVariation() method in
your WebPage subclass and returning something else.

Best regards,

Alastair



2008/6/11 Kram.V <[EMAIL PROTECTED]>:

>
> In Wicket is it possible to inherit from multiple layouts?
>
> What we are trying to do is introduce different skins for the same
> application (We could control all of this in CSS and forget about it, but
> want to try this first)
>
> Each skin is a different Layout Page/Class in Wicket, how can we switch the
> inheriting Page/Class's layout.
>
> For instance:
>
> Class Skin1 extends WebPage
> Class Skin2 extends WebPage
>
> abstract BasePage() - Don't know how to design this one yet!
>
> MyPage extends BasePage
>
> and MyPage should use either Skin1 or Skin2 based on some criteria inside
> of
> BasePage.
>
> Is this even doable ?
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Multiple-Layouts-using-Inheritance-tp17786400p17786400.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