Announcement Announcement Module
Collapse
No announcement yet.
Spring WebFlow2 Question. Should I use Ajax or a transition? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring WebFlow2 Question. Should I use Ajax or a transition?

    Spring WebFlow2 Question. Should I use Ajax or a transition?

    I have a screen that my user has to fill out some data.

    The user sees a number of radio buttons and and based on the radio button picked he has to pick a store from a dropdown list. The values in the dropdown list change based on the radio button picked.

    Should I do a ajax call to the server everytime the user picks a radio button to reload the values in the dropdown?

    Should I use Spring WebFlow2 transition to reload the dropdown back?

    or do you know any other better way.. I would like to hear some options.

    Someone said I can do something like this

    Something like this: with ajax and javascript but doe anyone know the javascript to do a transition on a radio click?

    <transition on="radioClick">
    <evaluate expression="formAction.bind" />
    <evaluate expression="formAction.getItems" />
    <render fragments="dropdownCombo" />
    </transition>
    Last edited by JohnTheDroider; Sep 4th, 2012, 08:59 AM.
Working...
X