[ 
https://issues.apache.org/jira/browse/WICKET-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477264
 ] 

Jean-Baptiste Quenot commented on WICKET-313:
---------------------------------------------

Igor: yes ajaxrequesttarget.respond() can sometimes process user-provided code. 
 For example, the onAttach() method of my ajax-rendered RefreshingView 
components call populateItem(), and this user method can possibly fail.  So if 
you don't object, I would like to remove try/catch in 
ajaxrequesttarget.respond().

> AjaxRequestTarget error handling
> --------------------------------
>
>                 Key: WICKET-313
>                 URL: https://issues.apache.org/jira/browse/WICKET-313
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>            Reporter: Oscar Bueno
>         Assigned To: Jean-Baptiste Quenot
>             Fix For: 2.0
>
>
> Now the respond method of the AjaxRequestTarget is catching all the 
> RuntimeExceptions that are throwed.  I would prefer to handle this exceptions 
> by myself.  I have a requestTarget that is a wrapper of the wicket 
> AjaxRequestTarget where we could made something in case of errors in the 
> respond method of the AjaxRequestTarget.
> I'm using the AjaxRequestTarget to replace a wizard panel, in case of error, 
> I would display an errors panel instance of the original panel.

-- 
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