eclipse,spring,spring-mvc,spring-webflow-2
I think there has to be an order in which the elements are defined. Try defining the action-state before the global-transitions. If you hover your mouse pointer over the "flow" xml definition in your xml file this info appears (among others): Content Model : (attribute*, secured?, persistence-context?, var*, input*, on-start?,...
java,maven,spring-mvc,spring-webflow-2
Considering your application is based on Spring, I guess you can easily output the call stack using Interceptor, some like "org.aopalliance.intercept.MethodInterceptor". While it has some limitations since you cannot capture the execution of those methods called by other methods in the SAME class, in that case, using proxy would be...
Spring webflow follows POST-REDIRECT-GET approach for every request. i.e., initial request is split into 2 requests - POST processing and then REDIRECT-GET (render view) In <on-entry>, action happens in first request and so request attribute will not survive when view is rendered. In <on-render>, whole action happens in second request...
spring,spring-mvc,spring-webflow,spring-webflow-2
Finally, I've chosen to save requestParameter in a flowScope var and so I can use it when on-render execution is invoked <on-entry> <set name="flowScope.code" value="requestParameters.code" /> </on-entry> <on-render> <evaluate expression="eventProvider.loadPage(flowScope.code)" /> </on-render> ...
java,spring,validation,spring-webflow,spring-webflow-2
This is the default behavior when you implement Validator for view validation. If you have overridden validate method in your Validator implementation and if validation is turned on in view-state (say eg., displayNameView), then first validateDisplayNameView method will be called followed by validate method. I will override this default validate...
spring,spring-webflow,spring-webflow-2
When reentering a flow after a user clicks the back button you need some type of condition check or to trigger an exception where either can be caught and handled to redirect to desired page. Possible Solutions: 1. Add to the user's session a variable that indicates a particular flow...
spring,spring-security,spring-webflow,spring-webflow-2
Real problem was I was setting secured control on spring security configuration and I should set their on flow definition. Create a custom form page/controller wasn't the problem and works properly and it's not necessary to set loginProccess if you are using a bean. So, configuration would be some like...
java,spring,spring-mvc,classcastexception,spring-webflow-2
FlowBuilderServices is meant to be a Spring-managed bean, but in your config it is just a new instance. It likes to be ApplicationContextAware and InitializingBean, but that is gonna work only if managed by Spring. The solution is simple: put @Bean on getFlowBuilderServices() method. And I think you should also...
spring-mvc,spring-webflow,spring-webflow-2
Assuming you have a mapping in your web.xml as: <servlet> <servlet-name>yourApp</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>yourApp</servlet-name>...