Do you really have different Pages (= Classes) for each customer? If not,
then just mount the customer page with e.g. IndexedParamUrlCodingStrategy,
add the customer name to the PageParameters and retrieve it then in the
pages constructor. e.g.
PageParameters params = new PageParameters();
params.put("0", customer.getName());
setResponsePage(CustomerPage.class, params)
--> will be /customer/customerOneName
and then in the pageconstructor
final String customerName = params.getString("0");
makes sense?
michael
Mathias P.W Nilsson wrote:
>
> Hi!
>
> I'm building an application where I want to set variation and other
> settings determined by the path
>
> lets say a user request myapplication/customer1
>
> I want to mount /customer1 to Base.class. I can do this in init by what if
> I add another customer via admin. How can I mount /customer2 outside of
> the init method of the wicket application class?
>
> Another question would be to keep the /customer1 or /customer2 in every
> request so if I call setResponsePage( new Login() ) then I would like to
> keep /customer1/login. Any suggestions?
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context:
http://www.nabble.com/mount-outside-init-tp20619679p20620259.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]