0 Replies Latest reply on Jun 11, 2012 5:33 AM by kwutzke

    a4j:ajax event="rowclick" listener not called on rich:collapsibleSubTable: BUG?

    kwutzke

      Hello,

       

      I'm looking for a way to determine the clicked (selected) row on some of my list components. I found

       

      https://community.jboss.org/thread/164648

      https://community.jboss.org/thread/172738

      https://community.jboss.org/thread/164402

       

      which (kinda) deal with <a4j:ajax ... listener="#{myBean.methodName}" /> not being called when using a <rich:dataTable>.

       

      I now have a collapsible sub table (even nested ones) in my views:

      {code}

      <rich:dataTable value="#{userRepo.typedDocumentGroups}"

                      var="dg"

                      id="repo-idoc-datatable">

        <f:facet name="header">

          <rich:columnGroup>

            <rich:column><h:outputText value="Type" /></rich:column>

            <rich:column><h:outputText value="File Name" /></rich:column>

            <rich:column><h:outputText value="Expiry Date" /></rich:column>

            <rich:column><h:outputText value="Actions" /></rich:column>

          </rich:columnGroup>

        </f:facet>

        <rich:collapsibleSubTable value="#{dg.documents}"

                                  var="doc"

                                  rowKeyVar="rowNbr">

       

          <a4j:ajax event="rowclick" listener="#{nodeManager.selectDesignSheet}" />

       

          <!-- type column spans several rows -->

          <rich:column rowspan="#{dg.numDocuments}" rendered="#{empty rowNbr or rowNbr eq 0}" styleClass="left">

            <h:outputText value="#{dg.title}" />

          </rich:column>

       

          ...

       

        </rich:collapsibleSubTable>

      </rich:dataTable>{code}

       

      Note the <a4j:ajax event="rowclick" listener="#{nodeManager.selectDesignSheet}" />... when placing this inside the <rich:collapsibleSubTable> the listener is never called. When omitting the collapsible sub table and using a flat <rich:dataTable> only the listener is called correctly. I can't use the latter however, because the row click is hidden by the collapsible sub table. It seems like the feature has never been fixed for the collapsible sub table.

       

      Is this a bug?

       

      Has https://issues.jboss.org/browse/RF-10824 only been resolved for regular datatables?

       

      Karsten