what about:

class MyPage extends WebPage {

 public String getVariation() {

   return getPageParameters().get("style");
 }
}
?

On Wed, Feb 23, 2011 at 4:25 PM, Thijs <[email protected]> wrote:

> Hi.
>
> We have a use case where we have one Wicket application that has multiple
> styles (passed in through a page-parameter). These styles are put on the
> session and we have different css, html and properties based on those
> styles.
> This works as long as the user doesn't try to open 2 different styles in
> the same browser.
>
> Tab1 http://foo.bar/app/style/theme1
> Tab2 http://foo.bar/app/style/theme1
> As soon as you go back to tab1 and do something, the style changes.
>
> Is there a way to do this without putting the style on the session, but
> still be able to use the style and variation logic in Wicket?
>
> I was looking at setting something on a model that is passed around all to
> pages. But I can't figure out how to make this work with the
> resourceloading.
>
> Thijs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to