3 Replies Latest reply on Sep 12, 2014 3:57 PM by Alvin Dickson

    a4j:param doesn't work with rich:componentControl correctly

    Alvin Dickson Newbie

      Hi, i'm new in RichFaces and jsf and i have a problem that i cannot resolve.

       

      I have this inside a rich:column

       

            <h:commandLink   class="pagado" rendered="#{rescateChk.proEstado eq 'S'}"> Pagado

       

                                          <a4j:param  value="#{rescateChk.noCheque}" assignTo="#{ejecutivos.currentNumCheque}">

       

       

                                          </a4j:param>

       

       

                                          <rich:componentControl event="click" target="confirmDialog" operation="show">

                                              >

                                          </rich:componentControl>

           </h:commandLink>

       

      this code is outside of the dataTable

       

        <rich:popupPanel  id="confirmDialog" modal="true" resizeable="true" onmaskclick="#{rich:component('confirmDialog')}.hide()">

                          <f:facet name="header">

                              <h:outputText value="Pay" />

                          </f:facet>

                          <f:facet name="controls">

                              <h:outputLink value="#" onclick="#{rich:component('confirmDialog')}.hide();

                                  return false;">

                                  X

                              </h:outputLink>

                          </f:facet>

                          <p>

           

                              #<h:outputText  id="showNumCheque" value="#{ejecutivos.currentNumCheque}"/>

                          </p>

                      </rich:popupPanel>

       

      The thing is that when i click the link the dialog opens and  the bean property its null, the  <a4j:param> ist not applying the assignTo to the bean property,

      but if i remove the part of the code of the <rich:componentControl> and put in the getCurrentCheque method in the bean Class and print the value of the property, when i click again the commandLink the dialog its not showing (obvious) but in the console i see the correct value so

      the <a4j:param> so its works perfectly without the <rich:componentControl> .

       

      why?

       

      Thanks a lot