Results 1 to 3 of 3

Thread: Bug in binding converter?

  1. #1
    Join Date
    Oct 2008
    Posts
    286

    Default Bug in binding converter?

    web flow
    Code:
    	<view-state id="enterSimulation" view="view-simulation" model="simulationView" >
    		<binder>
    			<binding property="simulationMode.simulationDate" converter="customStringToDate"/>
    			<binding property="simulationMode.simulationMode" converter="customStringToMode"/>
    			
    		</binder>
            ....
    JSP
    Code:
    	<form:input path="simulationMode.simulationMode" readonly="true"/> <!-- it calls the converter -->
    	${simulationView.simulationMode.simulationMode} <!-- it doesn't call the converter -->
    how can i implement the converter with the same expression?
    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

    i am using Spring MVC 2.5.6.SEC01 and Spring Webflow 2.0.8.RELEASE
    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

    the reason behind this, i want to display the simulationMode value not the code.

    "0" = "actual mode"
    "1" = "simulation mode"

    but not inside the input text ,.... want to display it as label...

    spring doesn't support ${simulationView.simulationMode.simulationMode} to call the converter...

    if not, please give me any ideas on how to display as a label...
    Spring tag label doesn't show the value...
    e.g. <form:label path="simulationMode.simulationMode" ></form:label> <-- it results nothing
    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
  •