You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by infiniter <in...@gmail.com> on 2013/05/06 18:23:46 UTC
How to preserve current url in error page
I've got a listener that does the error handling in Wicket 6.6.0 and I want
to keep the current url instead of replacing it with the url of the error
page. Anyone
Help is appreciated.
Carlos.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-preserve-current-url-in-error-page-tp4658595.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to preserve current url in error page
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Use:
Class errorPage =
application.getApplicationSettings().getInternalErrorPage();
throw new RestartResponseException(new PageProvider(errorPage),
RedirectPolicy.NEVER_REDIRECT)
On Mon, May 6, 2013 at 6:23 PM, infiniter <in...@gmail.com> wrote:
> I've got a listener that does the error handling in Wicket 6.6.0 and I want
> to keep the current url instead of replacing it with the url of the error
> page. Anyone
> Help is appreciated.
>
> Carlos.
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-preserve-current-url-in-error-page-tp4658595.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
Wicket Training & Consulting
http://jWeekend.com <http://jweekend.com/>