Results 1 to 4 of 4

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

  1. #1
    Join Date
    Apr 2007
    Posts
    276

    Default 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. #2
    Join Date
    Jan 2007
    Posts
    22

    Default

    Hi there,

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

    Raoul

  3. #3
    Join Date
    Apr 2007
    Posts
    276

    Default

    Quote 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.

  4. #4
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •