Announcement Announcement Module
Collapse
No announcement yet.
Retain user-data values on page re-render if transition fails. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Retain user-data values on page re-render if transition fails.

    Hi all

    I have this issue i want to fix and my concepts are little weak in SWF.
    My jsp page has text/radio button entries and on event 'Next' , i call validation method which returns true/false if vales are okay.
    On 'true', it goes to next page ofcourse and
    On 'false', it displays same page with Error - messages.
    But all the text-entries by user are gone. I want browser to remember those values.
    is there any solution in SWF 2.

    Example code :
    Code:
    <view-state id="addressState" view="addressView"  model="validationBean">
    <!--permResAddr  -->
    		<on-render>
    			<set name="requestScope.imgName" value="'addressPage.JPG'" />
    	
    			<set name="requestScope.pageHeader" value="'address.header'"/>
    		
    		</on-render>
    
    		<transition on="previous" to="nameState" />
    		<transition on="next" to="formState" bind="true">
    			<evaluate expression="actionBean.validateAddress(requestParameters.text_1,requestParameters.text_2)" />
    			
    		</transition>
    
    	</view-state>



    Thanks
Working...
X