[ 
https://issues.apache.org/jira/browse/WICKET-3256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972437#action_12972437
 ] 

Martin Grigorov commented on WICKET-3256:
-----------------------------------------

James, what you need is currently supported by 
org.apache.wicket.request.cycle.IRequestCycleListener.onException(RequestCycle, 
Exception).
You can add a custom listener that will return custom IRequestHandler depending 
on the Exception type.

The ExceptionMapper is used only if none of the registered listeners returns a 
non-null response for its onException() method.

> Use a Provider for IExceptionMapper
> -----------------------------------
>
>                 Key: WICKET-3256
>                 URL: https://issues.apache.org/jira/browse/WICKET-3256
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: James Carman
>            Assignee: Pedro Santos
>         Attachments: WICKET-3256.patch
>
>
> Currently, in order to plug in your own IExceptionMapper, you have to 
> override a method.  This makes developing "frameworks" difficult, since your 
> client code has to do a method override in order to get everything working.  
> It would be nicer if the IExceptionManager was created via a "provider."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to