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} -OtherPage.class with ${username} as a
 pageparameter

 thanks,
 Nim
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/1-5RC1-url-mounting-encoding-tp3312989p3312989.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
http://www.grobmeier.de

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/1-5RC1-url-mounting-encoding-tp3312989p3313088.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 this: www.myapp.com/username where
 username is variable

 Cheers,
 Nim
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/1-5RC1-url-mounting-encoding-tp3312989p3313088.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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());

The API has changed and I cannot find where to set the redirect flag.

Thanks for your help.

Nim
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5RC1-url-mounting-encoding-tp3312989p3313151.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org