1 Reply Latest reply on Aug 22, 2013 7:12 PM by Brian Leathem

    a4j:commandLink doesn't work in my form of popupPanel

    houssam ousalhi Newbie

      Hello,

       

      I have  a a4j:commandLink in my popup, the listner doesn't work.

      Firstly  if i click in the h:commandLink, it doesn't work.

      But just after all the h:commandLink and the a4j:commandLink work !!

      i think the problem is my form. but i have just one form in mypopup !!

       

      Could you help me please ??

       

      <rich:popupPanel id="deplacerLotModalPanel" minWidth="400"

                   domElementAttachment="parent"  autosized="true" headerClass="modalPanel_header"

                  moveable="true" show="#{easyPlannerTree.renderedDeplacerLotModalPanel}"

                  styleClass="default_modalPanel_styleClass" onhide="hideDeplacerLotModalPanel();">

                 

                  <f:facet name="header">

                  </f:facet>

                 

                 

                  <h:form id="deplacerLotForm"  style="vertical-align: middle ;" ajaxSubmit="true">

                     ...................................

       

                      <h:panelGroup>

                          <a4j:commandLink styleClass="orangeButton"  value="[ #{msgsCommon.dupliquer} ]"

                              oncomplete="#{rich:component( 'deplacerLotModalPanel')}.hide()">

                              <a4j:ajax event="click" listener="#{easyPlannerTree.duplicateAffectation}"/>

                          </a4j:commandLink>

       

                          <h:commandButton  styleClass="orangeButton"  value="[ #{msgsCommon.dupliquer} ]" actionListener="#{easyPlannerTree.duplicateAffectation}">

                           <f:ajax execute="@form"  render="@form"/>

                           </h:commandButton>

                          

                          

                          <a4j:commandLink styleClass="orangeButton"

                              actionListener="#{easyPlannerTree.replaceAffectation()}" value="[ #{msgsCommon.remplacer} ]"

                              oncomplete="#{rich:component( 'deplacerLotModalPanel')}.hide()"

                               render="panel, id_#{easyPlannerComparateur.matriceSourceId}_outputPanel, id_#{easyPlannerComparateur.matriceCibleId}_outputPanel">

                          </a4j:commandLink>

       

                          <a4j:commandLink  immediate="true" onclick="#{rich:component( 'deplacerLotModalPanel')}.hide()"

                              styleClass="orangeButton" value="[ #{msgsCommon.fermer} ]">

                          </a4j:commandLink>

                      </h:panelGroup>

                  </h:form>

              </rich:popupPanel>