1.5RC1 url mounting/encoding

2011-02-18 Thread nimmy
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:

Re: 1.5RC1 url mounting/encoding

2011-02-18 Thread Christian Grobmeier
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}

Re: 1.5RC1 url mounting/encoding

2011-02-18 Thread nimmy
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:

Re: 1.5RC1 url mounting/encoding

2011-02-18 Thread Igor Vaynberg
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

Re: 1.5RC1 url mounting/encoding

2011-02-18 Thread nimmy
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());