You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/11 23:14:27 UTC

[jira] [Closed] (TAP5-44) enable creation of custom "onException" event handler

     [ https://issues.apache.org/jira/browse/TAP5-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti closed TAP5-44.
-------------------------------

       Resolution: Won't Fix
    Fix Version/s: 5.3

Please open a new one for 5.3 if this still applicable

> enable creation of custom "onException" event handler
> -----------------------------------------------------
>
>                 Key: TAP5-44
>                 URL: https://issues.apache.org/jira/browse/TAP5-44
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Kristian Marinkovic
>             Fix For: 5.3
>
>
> make it possible to create custom "onException" event handler that are fired when custom Exceptions are thrown.
> i have the use case saying, that when an optimistic lock exception is thrown the same page with the newly loaded entity and an error message has to be displayed. Although it is possible to use the "onException" event it would be much nicer to have a "onExceptionFromOptimisticLocking" exception where the developer can put the exception handling into this specific method. In the near future we will have multiple other exceptions that need to be handled in a similar way. 
> i prefer specific event handler to a bunch of instanceof  statements 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira