5 Replies Latest reply on Aug 14, 2007 5:45 PM by Sergey Smirnov

    Conditional Action

    Kevin Gutch Newbie

      Does anyone have an example of how I might have the action of an link based on some other input value such as which radio button is selected at the time the link is pressed?

      <h:selectOneRadio value="#{fruitSelectionView.manufacturer}">
      <a4j:support event="onclick"
      reRender="dataTableReplacementParts,selectors" />
      <f:selectItems value="#{fruitSelectionView.allManufacturers}" />

      <a4j:commandLink reRender="myPanel" action="BASED ON INPUT VALUE"
      id="cmdSubmit" >