0 Replies Latest reply on Mar 20, 2012 7:49 AM by Max Rainer

    collapsibleSubTable and filtering

    Max Rainer Newbie

      Hi,

      I want to filter in a dataTable that has a collapsibleSubTable

      I am using Richfaces 4.1.

      Where do I have to place my "deviceFilterBean.filterNameImpl" ?


      Has anyone an example for that?

       

      I also have some problems with "rows" in dataTable when using subTables. Maybe another hint?

       

      Thx a lot

      Max

       

      <rich:dataTable value="#{deviceTableBean.devices}" var="device" id="table">
          <f:facet name="header">
              <rich:columnGroup id="tableheader" >
                  <rich:column styleClass="tr2">
                      <h:outputText value="Master Device" /><br/>
                      <h:inputText value="${deviceFilterBean.nameFilter}" >
                          <a4j:ajax render="table@body" execute="@this" event="keyup" />
                      </h:inputText>
                  </rich:column>
                  <rich:column styleClass="tr1">
                      <h:panelGroup>
                      <h:outputText value="Model Name" /><br/>
                      </h:panelGroup>
                  </rich:column>                    
              </rich:columnGroup>
          </f:facet>
          <rich:column rendered="${not empty device.membersList}" filter="${deviceFilterBean.filterNameImpl}"
              styleClass="odd-row">
              <rich:collapsibleSubTableToggler  for="member" >
                  <h:outputText value="#{device.hosts.name}" />
              </rich:collapsibleSubTableToggler>
          </rich:column>
          <rich:collapsibleSubTable expandMode="client" expanded="#{false}" 
              value="#{device.membersList}" var="member" id="member" >
              <rich:column> </rich:column>
              <rich:column>
                  <h:outputText value="#{member.entModelName}" />
              </rich:column>
          </rich:collapsibleSubTable>
      </rich:dataTable>