Announcement Announcement Module
Collapse
No announcement yet.
How to set off transition from javascript Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 03:56 PM.
Working...
X