views:

38

answers:

0

I'm new to prime faces and wanted to see if they could use in some way, the paging DataTable (paginator = "true") in TreeTable and filterBy(p: column filterBy = "# MyBackingBea.name") in TreeTable also.

The last before mentioned, (filterBy) only worked in DataTable not in TreeTable.

The code:

   <p:treeTable  value="#{documentsController.root}" var="nodoRoot">  
    <p:column filterBy="#{documentsController.root.name}">
     <f:facet name="header">Name</f:facet>
     <h:outputText value="#{nodoRoot.name}" />
    </p:column>
    <p:column>
     <f:facet name="header">Size</f:facet>
     <h:outputText value="#{nodoRoot.size}" />
    </p:column>
  </p:treeTable>