3 Replies Latest reply on Aug 3, 2007 11:07 AM by Chris Jboss

    a4j:support action integrated with jpdl?

    Chris Jboss Newbie

      Hi, I am trying to use a select list to move from my current page to one of several other pages in a wizard like application. I wanted the next page to load immediately after selecting something from the dropdown. I attempted this by using the a4j:support tag with an action that calls a jpdl page transition. I am not sure if this should work or not?

      Here is the dropdown on /home.xhtml:

      <h:selectOneMenu value="#{test.choice}" style="width: 10em;" >
       <f:selectItem itemValue="#{0}" itemLabel="Please Select" />
       <f:selectItems value="#{test.choices}"/>
       <a4j:support event="onchange" action="checkChoice" />

      <page name="home" view-id="/home.xhtml">
       <transition name="checkChoice" to="checkChoice"/>
      <decision name="checkChoice" expression="#{test.choice}">
       <transition name="choice1" to="page1"/>
       <transition name="choice2" to="page2"/>

      I also wanted to note, this worked fine when the action was a command button. I just didnt want to have an extra click if it wasnt neccessary. Also, I did make up the example above based on the real code, to just display the core issue without any extraneous stuff, so any typos are probably due to that.