[
http://www.stripesframework.org/jira/browse/STS-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-38.
-------------------------
> Error handling by the ActionBean
> --------------------------------
>
> Key: STS-38
> URL: http://www.stripesframework.org/jira/browse/STS-38
> Project: Stripes
> Issue Type: New Feature
> Components: ActionBean Dispatching
> Reporter: Greg Hinkle
> Assignee: Tim Fennell
> Fix For: Release 1.0
>
>
> What I'm looking for, is a way to have my ActionBean notified when there is
> an error executing the validation steps for that bean. The reason I think its
> appropriate is that the dispatcher is instantiating my ActionBean and then
> setting values in it. The ActionBean should be given the option of being
> notified if that fails somewhere and my event handler never runs. (Since I'm
> pre-loading some hibernate objects to allow binding to track changes on them,
> I'd like to be able to rollback my transaction under failure, rather than
> having to evict and reattach the object. Alternatives include only ever
> committing from my event (rather than in my hibernate filter as is used
> sometimes), but it just feels like the ActionBean should be notified.
> My proposal, add an @EventError annotation that I can use to mark the method
> that should be executed in case of validation failure. Alternatively, an
> ErrorHandler interface could be utilized that also provided the
> ValidationErrors for any custom handling.
> An enhancement, but by no means necessary would be to also allow the
> @EventError annotation to also provide a specific event name for which it
> would like to be the error handler.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development