Results 1 to 4 of 4

Thread: model binding problem: transition cannot be executed, page will re-render

  1. #1
    Join Date
    Oct 2008
    Posts
    286

    Default model binding problem: transition cannot be executed, page will re-render

    Please guide me on how to bind the domain member to form:input tag

    Java (Domain/Model)
    Code:
    public class RosenkaSanshutsuView implements Serializable {
    
        private String selectedAnalyzeId = "";
        
    	/**
    	 * @return the selectedAnalyzeId
    	 */
    	public String getSelectedAnalyzeId() {
    		return selectedAnalyzeId;
    	}
    
    	/**
    	 * @param selectedAnalyzeId the selectedAnalyzeId to set
    	 */
    	public void setSelectedAnalyzeId(String selectedAnalyzeId) {
    		this.selectedAnalyzeId = selectedAnalyzeId;
    	}
    	
    }
    Flow
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <flow xmlns="http://www.springframework.org/schema/webflow"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/webflow
            http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
    	
    	<input name="simulationAnalyzeId" required="true" />
    
    	<view-state id="enterRosenka" view="view-rosenka" model="rosenkaSanshutsuView">
    
    		<on-entry>
    			<evaluate expression="rosenkaService.createRosenkaSanshutsuView(flowScope.simulationAnalyzeId)"
    						result="viewScope.rosenkaSanshutsuView"></evaluate>
    		</on-entry>
    
    		<transition on="view-chkRosenka" to="enterChkRosenka"/>
    
    		<transition on="modoru" to="shuryo">
    		</transition>
    		
    		<on-exit>
    			<set name="requestScope.rosenkaSanshutsuAnalyzeId" value="viewScope.rosenkaSanshutsuView.selectedAnalyzeId"></set>
    			<set name="requestScope.rosenkaSanshutsuJoruiNo" value="viewScope.rosenkaSanshutsuView.selectedJoruiNo"></set>
    			<set name="requestScope.rosenkaSanshutsuRosenNo" value="viewScope.rosenkaSanshutsuView.selectedRosenNo"></set>
    		</on-exit>
    	</view-state>
    
    	<view-state id="enterChkRosenka" view="view-chkRosenka">
    		<on-entry>
    			<set name="viewScope.rosenkaSanshutsuAnalyzeId" value="requestScope.rosenkaSanshutsuAnalyzeId"></set>
    			<set name="viewScope.rosenkaSanshutsuJoruiNo" value="requestScope.rosenkaSanshutsuJoruiNo"></set>
    			<set name="viewScope.rosenkaSanshutsuRosenNo" value="requestScope.rosenkaSanshutsuRosenNo"></set>
    		</on-entry>
    	
    		<transition on="modoru" to="enterRosenka">
    		</transition>
    	
    	</view-state>
    	
    	<end-state id="shuryo" view="externalRedirect:/simulation/simulation-flow" />
    	
    </flow>
    jsp
    Code:
    <form:form modelAttribute="rosenkaSanshutsuView">
    <form:input path="selectedAnalyzeId"/>
    </form:form>
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  2. #2
    Join Date
    Oct 2008
    Posts
    286

    Default

    anybody encountered same problem? or knows how to implement the binding.... please give me hints or ideas...

    thanks
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  3. #3
    Join Date
    Oct 2008
    Posts
    286

    Default

    how do you bind your domain using Spring form tag ?
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  4. #4
    Join Date
    Oct 2008
    Posts
    286

    Default

    how can I bind the form:input into my domain..

    right now, I am able to bind it from domain to jsp but new value wasn't bind upon submit..

    I change the value then
    if I click my submit button...the service was called but the value of selectedAnalyzeId wasn't changed.

    Code:
    <form:form modelAttribute="rosenkaSanshutsuView">
    <form:input path="selectedAnalyzeId"/>
    <input style="width: 135px;" type="submit" name="_eventId_view-chkRosenka" value="Goto Check Rosenka Screen"/>&#160;
    </form:form>
    please guide me on.. thanks
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

Posting Permissions

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