3 Replies Latest reply on Mar 17, 2011 12:22 PM by Nick Belaevski

    Action and Action listener are triggered many times in facelet... bug?

    Paweł Ryszawa Newbie

      I developed a piece like this:

       

      <rich:dataTable value="#{someBean.someDS}" var="someRow">

        <rich:column>

          <f:facelet name="header">

            <h:commandButton image="icon-add.gif" action="#{someBean.doAction}" actionListener="#{someBean.listenAction}">

          </f:facelet>

          ...

        </rich:colun>

      </rich:dataTable>

       

      When I click the button in the header, both methods SomeBean.doAction and SomeBean.listenAction are triggered once for each row in the data table. This does not occur in old-style <h:dataTable><h:column> - there it is triggered only once. Is this a bug of RichFaces?

       

       

       

      Regards,