3 Replies Latest reply on Apr 15, 2011 6:21 AM by mohamida

    richfaces 4- a4j:commandLink inside rich:datatable

    mohamida

      i migrated from richfaces 3.3.3 to richfaces 4.0, but my commandLink isn't executed only when i click on it 2 times.

       

      i have this on my page:

       

      <rich:dataTable id="listesOrdresAchat"

                                  value="#{ordres.suiviAchat}"

                                  var="cap"

                                  rows="10"

                                  onrowmouseover="this.style.backgroundColor='#FFFFAA'"

                                  onrowmouseout="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">

                      <f:facet name="caption">

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

                      </f:facet>

       

                      <rich:column style="width:20px">

                              <h:form>

                                  <a4j:commandLink id="linkAnnuler" action="#{ordres.recupAnnul}" style="text-decoration:none ;" render="listesOrdresAchat,mypanelGrid">

                                      <h:graphicImage style="border: none" width="16" height="16" alt="annuler"

                                                      name="../IMAGES/annuler.png">

                                      </h:graphicImage>

                                      <f:setPropertyActionListener value="#{cap}"

                                                                   target="#{ordres.ordreAnnule}" />

                                      <rich:tooltip target="linkAnnuler" followMouse="true" direction="topRight" showDelay="500" styleClass="tooltip">

                                          Annuler Ordre

                                      </rich:tooltip>

                                  </a4j:commandLink>

                              </h:form>

                      </rich:column>

       

                      <f:facet name="footer">

                          <h:form id="forme2_suivi_achat">

                              <rich:dataScroller for="listesOrdresAchat" rendered="#{!(ordres.suiviAchat.rowCount > 0)}"/>

                          </h:form>

                      </f:facet>

                  </rich:dataTable>

       

      the action action="#{ordres.recupAnnul}" is executed only when i click 2 times. But when i remove the id "listesOrdresAchat" from the render attribute, it get executed.

       

      Is there a problem ? Because it's working great with richfaces 3.3.3