Announcement Announcement Module
Collapse
No announcement yet.
model binding problem: transition cannot be executed, page will re-render Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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>

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

    thanks

    Comment


    • #3
      how do you bind your domain using Spring form tag ?

      Comment


      • #4
        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

        Comment

        Working...
        X