Re: Whats the best way to prevent handle 404?

2010-11-23 Thread Martin Grigorov
On Tue, Nov 23, 2010 at 5:31 AM, Arjun Dhar dhar...@yahoo.com wrote:


 I think Q1)  Q2) could have been answered by:

 http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-td1862982.html

You can write your own url coding strategy that works with regex.




 However the link provided by the replier is not working   :(
 Somewhere I saw the use of RegEx in mount Paths but I cant seem to find it.

 Regarding Q3) I think http://blog.jteam.nl/2010/02/24/wicket-root-mounts/
 looks promising,along with a recent thread (Virtual contexts):

 http://apache-wicket.1842946.n4.nabble.com/how-to-have-one-app-at-multiple-root-contexts-td3054122.html
 ..but thats all 1.5

1.5 is quite stable these days. Give it a try.
There are rumors the next release will be a candidate (RC).


 Anyway, if anyone got a ready made ref to answers for Q1)  Q2) would
 appreciate it.

 thanks
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Whats-the-best-way-to-prevent-handle-404-tp3053827p3054830.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




Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar

Hi,
 Q1) Using mount paths can we prevent 404 by using RegEx? Is there is a
better way?

 Q2) Instead of preventing 404, if we go reactive , how can we trap it?
(I was unsuccessful playing with WebRequestCycle)

Q3) Part of my application is User facing, part Admin. For exceptions
depending on which page it came I want to redirect to appropriate Error
Page. I tried doing this in the Application level, (where mounts are
specified) but is there a way to control/delegate this at Template level, so
I can section how exceptions are handled?

..Some examples or 2 , 3 lines of code would help. Maybe I'm doing it wrong.

thanks,
Arjun
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Whats-the-best-way-to-prevent-handle-404-tp3053827p3053827.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: Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar

I think Q1)  Q2) could have been answered by:
http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-td1862982.html


However the link provided by the replier is not working   :(
Somewhere I saw the use of RegEx in mount Paths but I cant seem to find it.

Regarding Q3) I think http://blog.jteam.nl/2010/02/24/wicket-root-mounts/
looks promising,along with a recent thread (Virtual contexts):
http://apache-wicket.1842946.n4.nabble.com/how-to-have-one-app-at-multiple-root-contexts-td3054122.html
..but thats all 1.5 

Anyway, if anyone got a ready made ref to answers for Q1)  Q2) would
appreciate it.

thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Whats-the-best-way-to-prevent-handle-404-tp3053827p3054830.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