Hi,
Using Wicket 1.5RC1, how do I mount a Page to root that is other than the
home page? E.g.:
www.myapp.com -IndexPage.class
www.myapp.com/${username} -OtherPage.class with ${username} as a
pageparameter
thanks,
Nim
--
View this message in context:
Hi,
Using Wicket 1.5RC1, how do I mount a Page to root that is other than the
home page? E.g.:
www.myapp.com -IndexPage.class
can you try this?
mountPackage(/, IndexPage.class);
Not sure about - try mountPage if you don't want to mount the package
Christian
www.myapp.com/${username}
Hi Christian,
Thanks for your reply. I have already set the Index page as the homepage.
I was trying to figure out how to handle this: www.myapp.com/username where
username is variable
Cheers,
Nim
--
View this message in context:
try mountPage(${username}, MyPage.class) and access username through
pageparameters
-igor
On Fri, Feb 18, 2011 at 8:41 AM, nimmy nim_sa...@hotmail.com wrote:
Hi Christian,
Thanks for your reply. I have already set the Index page as the homepage.
I was trying to figure out how to handle
Thanks for that Igor. I have another 1.5RC1 question - where do I set the
redirect flag? E.g. in 1.4, when the user logs out of the app I do the
following:
getSession().invalidate();
getRequestCycle().setRedirect(true);
setResponsePage(MyApplication.get().getHomePage());