You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris Merrill <ch...@webperformance.com> on 2012/01/27 20:23:22 UTC

Possible to show ExceptionErrorPage after showing our own error page?

We've replaced wicket error pages with our own, based on instructions here:
https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html

We would like developers to see what the users are going to see, so we don't
want to disable this feature during development. We would, however, like to
show the very useful wicket exception error page. For example, we might have
a link to it on our error page that is only turned on for development deployments.

I have hunted around a little, but I haven't yet figured out how to get
Wicket to pass the Exception and Page to my error page - so that I might
pass it on to an ExceptionErrorPage when the link is selected.

Is there an easy way to do this, or do I need to start digging deep?


-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
chris@webperformance.com                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

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


Re: Possible to show ExceptionErrorPage after showing our own error page?

Posted by Chris Merrill <ch...@webperformance.com>.
Thanks, Martin!

On 1/28/2012 5:48 AM, Martin Grigorov wrote:
> Hi,
> 
> In org.apache.wicket.request.cycle.IRequestCycleListener#onException()
> you can return RenderPageRequestHandler with your own page that shows
> the exception.
> Or you can store the exception in RequestCycle's metadata and let
> Wicket show the configured error page. Inside that page you can read
> the exception from the requestcycle's metadata and use it.
> 
> On Fri, Jan 27, 2012 at 9:23 PM, Chris Merrill <ch...@webperformance.com> wrote:
>> We've replaced wicket error pages with our own, based on instructions here:
>> https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
>>
>> We would like developers to see what the users are going to see, so we don't
>> want to disable this feature during development. We would, however, like to
>> show the very useful wicket exception error page. For example, we might have
>> a link to it on our error page that is only turned on for development deployments.
>>
>> I have hunted around a little, but I haven't yet figured out how to get
>> Wicket to pass the Exception and Page to my error page - so that I might
>> pass it on to an ExceptionErrorPage when the link is selected.
>>
>> Is there an easy way to do this, or do I need to start digging deep?
>>
>>
>> --
>> ------------------------------------------------------------------------ -
>> Chris Merrill                           |  Web Performance, Inc.
>> chris@webperformance.com                |  http://webperformance.com
>> 919-433-1762                            |  919-845-7601
>>
>> Web Performance: Website Load Testing Software & Services
>> ------------------------------------------------------------------------ -
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
> 
> 
> 


-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
chris@webperformance.com                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

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


Re: Possible to show ExceptionErrorPage after showing our own error page?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

In org.apache.wicket.request.cycle.IRequestCycleListener#onException()
you can return RenderPageRequestHandler with your own page that shows
the exception.
Or you can store the exception in RequestCycle's metadata and let
Wicket show the configured error page. Inside that page you can read
the exception from the requestcycle's metadata and use it.

On Fri, Jan 27, 2012 at 9:23 PM, Chris Merrill <ch...@webperformance.com> wrote:
> We've replaced wicket error pages with our own, based on instructions here:
> https://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html
>
> We would like developers to see what the users are going to see, so we don't
> want to disable this feature during development. We would, however, like to
> show the very useful wicket exception error page. For example, we might have
> a link to it on our error page that is only turned on for development deployments.
>
> I have hunted around a little, but I haven't yet figured out how to get
> Wicket to pass the Exception and Page to my error page - so that I might
> pass it on to an ExceptionErrorPage when the link is selected.
>
> Is there an easy way to do this, or do I need to start digging deep?
>
>
> --
> ------------------------------------------------------------------------ -
> Chris Merrill                           |  Web Performance, Inc.
> chris@webperformance.com                |  http://webperformance.com
> 919-433-1762                            |  919-845-7601
>
> Web Performance: Website Load Testing Software & Services
> ------------------------------------------------------------------------ -
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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