I have 3 pages that I am using to test, play, and learn about spring webflow. I have the following in my x-flow.xml:
If I remove the boled bean-action, I am able to move along to the next page in the flow. With it I keep getting sent back to the same page the validator class is not causing the issue (its not checking anything currently). I have defined "sync" in my x-flow-beans.xml like so:Code:<view-state id="ownerinfo" view="ownerinformation"> <render-actions> <action bean="formAction" method="setupForm"/> </render-actions> <transition on="next" to="homeinfo"> <action bean="formAction" method="bindAndValidate"/> <bean-action bean="sync" method="saveFormDataToWidget"> <method-arguments> <argument expression="flowScope.formData"/> </method-arguments> <method-result name="results"/> </bean-action> </transition> </view-state>
"saveFormDataToWidget" looks like:Code:<bean id="sync" class="com.xactsites.producty.web.WidgetSynchronizer" />
This println gets printed out over and over when I try to move along in the flow. But again I am not forwarded to the next page (homeinfo). I am probably getting some error or something right? Why can I see any stacktraces in the logs? Is there a debug option I can enable to more closely follow what is going on?Code:public boolean saveFormDataToWidget(FormData formData) { System.out.println("formdata: " + formData + " to: "); return true; }


Reply With Quote
