Announcement Announcement Module
Collapse
No announcement yet.
Unable to continue (go to next page) but dont see any errors either Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to continue (go to next page) but dont see any errors either

    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:

    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>
    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:
    <bean id="sync" class="com.xactsites.producty.web.WidgetSynchronizer" />
    "saveFormDataToWidget" looks like:

    Code:
    public boolean saveFormDataToWidget(FormData formData)
    {
    	System.out.println("formdata: " + formData + " to: ");
    	return true;
    }
    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?

  • #2
    Hi there,

    Are you using log4j?
    If not this is a very good tool to help you find out what is going wrong.

    Raoul

    Comment


    • #3
      Originally posted by Mister_Lie View Post
      Are you using log4j?
      Yes. I switched in logger and still no errors in the logs. Sorry maybe I wasn't clear enough. I can get logs, I just don't see any errors telling me why I cannot move the next page. Am I not providing enough info...I realize this seems like a lame problem...I just can't figure it out.

      Comment


      • #4
        There must be some reason why either your "sync" or bindAndValidate action are failing. As a result, the transition rolls back and your flow re-enters the source state.

        You could put a breakpoint in your debugger in the ActionTransitionCriteria.test() method to find out more.

        Erwin

        Comment

        Working...
        X