4 Replies Latest reply on May 3, 2010 5:55 AM by Nick Belaevski

    a4j:support: action and reRender order problem

    pomcompot Newbie

      I got exactly the same problem than here with this code :

      <h:form>
         <rich:extendedDataTable>
             […]
             <a4j:support  id="takeLivraisonSelection"
                    event="onselectionchange"
                     reRender="actionButtons"
                     action="#{choixLivraison.takeLivraisonSelection}" />
         </rich:extendedDataTable>

       

        <div id="actionButtons">
            <s:button  view="/ChoixEnvironnement.xhtml"
                    propagation="join"
                     value="Sélectionner la cible du déploiement"
                     disabled="#{choixLivraison.selectedLivraison}">
                 <f:param name="from" value="ChoixLivraison" />
             </s:button>
        </div>
      </h:form>

       

      getSelectedLivraison is called before choixLivraison.takeLivraisonSelection, so selectedLivraison is empty and my button is never enabled. Don’t understand anything…  What can change the order of reRender and action phases?

       

      Thanks in  advance.

       

      P.S.: Sort of double posting because I don’t know if answered questions are followed.