-
Sep 4th, 2012, 02:04 PM
#1
How to set off transition from javascript
I have a Spring WebFlow2 project that if the user clicks the "loadschools" submit button I will call to my controller and load the states and then redisplay the same screen with the new states based on a radio button that is selected. I would like to remove the "loadschool" submit button and have java script run if the user clicks a radio button. can this be done? how do I tell webflow the transition to run?
<view-state id="SchoolVisitReport" view="SchoolVisitReport.jsp" model="visit" >
<transition on="submit" to="addVisit">
<evaluate expression="flowActions.validateVisit(visit, messageContext)"/>
</transition>
<transition on="cancel" to="endState" bind="false"/>
<transition on="loadSchools" to="SchoolVisitReport" >
<evaluate expression="flowActions.initializeSelectableStates (visit)" result="flowScope.selectableStates"/>
</transition>
</view-state>
I tried this but it did not work:
<form:radiobutton tabIndex="9" onchange='window.location="${flowExecutionUrl}&_ev entId=loadSchools")' value="B" path="borough" />Bronx-X<BR>
Last edited by JohnTheDroider; Sep 4th, 2012 at 02:56 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules