diff --git a/spring-webflow-reference/src/views.xml b/spring-webflow-reference/src/views.xml index ae323975..3b1f8a37 100644 --- a/spring-webflow-reference/src/views.xml +++ b/spring-webflow-reference/src/views.xml @@ -239,6 +239,38 @@ public class BookingValidator { + + Transition actions + + A view-state transition can execute one or more actions before executing. + These actions may return an error result to prevent the transition itself from executing. + If an error result occurs, the view will re-render and should typically display an appropriate error message to the user. + + + If the transition action invokes a plain Java method, the invoked method may return false to prevent the transition from executing. + This technique can be used to handle exceptions thrown by service-layer methods. + The example below invokes an action that calls a service and handles an exceptional situation: + + + +]]> + + + + Handling events