diff --git a/spring-webflow-reference/src/spring-mvc.xml b/spring-webflow-reference/src/spring-mvc.xml index 36e7305e..5b20b3f7 100644 --- a/spring-webflow-reference/src/spring-mvc.xml +++ b/spring-webflow-reference/src/spring-mvc.xml @@ -117,5 +117,29 @@ public class BookingFlowHandler extends AbstractFlowHandler { } ]]> + + View Resolution + + Views in Web Flow 2.0 attempt to automatically resolve unless explicitly specified. + In a Spring MVC environment, a view-state will try to find a JSP view based on the id of the state. + For example, <view-state id="intro"> will resolve to intro.jsp in the same directory as the flow definition. + By specifying the view attribute, a different file name can be selected, however, it must still be a JSP file. + + + A custom view resolver is required if different behavior is needed. + To create a custom view resolver the flow-builder-services attribute on flow-registry must define a new webflow:flow-builder-services element with a view-factory-creator. + + + ... + + + + + + + + ]]> +