From f235bb2011124cf7ac8cfcfac44731ba694c111a Mon Sep 17 00:00:00 2001 From: Scott Andrews Date: Fri, 11 Apr 2008 18:39:43 +0000 Subject: [PATCH] added section on view resolution --- spring-webflow-reference/src/spring-mvc.xml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) 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. + + + ... + + + + + + + + ]]> +