Re: redirect request for Page A to page B without contructing A?

2007-10-17 Thread dukehoops
in context: http://www.nabble.com/redirect-request-for-Page-A-to-page-B-without-contructing-A--tf4636621.html#a13262795 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Nino Saturnino Martinez Vazquez Wael
Why do you want to do this? dukehoops wrote: Hi, I'd like to redirect requests for page A to page B without constructing page A. Typically I'd use URL parsing in a servlet filter to accomplish this but would like to figure out an OO way to do so. In my RequestCycle I tried: @Override

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
target is PageA -I'd like to avoid constructing page A thanks -nikita -- View this message in context: http://www.nabble.com/redirect-request-for-Page-A-to-page-B-without-contructing-A--tf4636621.html#a13241857 Sent from the Wicket - User mailing list archive at Nabble.com

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread dukehoops
override given that: -I need to ascertain that intended request target is PageA -I'd like to avoid constructing page A thanks -nikita -- View this message in context: http://www.nabble.com/redirect-request-for-Page-A-to-page-B-without-contructing-A--tf4636621.html#a13241857 Sent from the Wicket

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
If an already logged-in user types in our home URL we'd like the site to redirect him/her to own profile page. If user's not logged in, they do land on home page. This is not to compel someone to sign in. So, for example below, PageA = site home page; PageB = user's own profile page Sounds

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Doug Leeper
://www.nabble.com/redirect-request-for-Page-A-to-page-B-without-contructing-A--tf4636621.html#a13246212 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread Eelco Hillenius
What I have done is to check in MyApplication.getHomePage(): public Class getHomePage() { IUser user = getMySession().getCurrentUser(); return user == null ? Index.class : UserHome.class; } That's another fine solution if the home page is