Is it possible to do any of the following with the TreeTable component.

1) Can the "Select All | Select None" be turned off and not show in
   the table header?

2) Is it possible to have a "select" checkbox appear for only SOME rows?
   I have a list of libraries and each library has a list of dvds.  I
   want only the DVDs to be selectable.

3) Is it possible to turn off the expand arrow on specific rows?
   For example, the DVDs do not have anything below them and
   do not need expand arrows

I am creating the TreeModel using

   new ChildPropertyTreeModel(root, "children");

Should I use something else to get any of the above? A pointer in the right direction would be much appreciated.

Where root is:

  root = new TransferObject();

public class TransferObject{
 public String name;
 public List<TransferObject> children;
 ...and getters/setters
}

The facelet code to display the tree is:


<tr:treeTable var="foo"
              value="#{learn.admin.contact.course.lister.tree}"
              rowSelection="multiple"
              rowsByDepth="100"
              expandAllEnabled="false">
   <f:facet name="nodeStamp">
      <tr:column>
         <f:facet name="header">
           <tr:outputText value="Library/DVD"/>
         </f:facet>
         <tr:outputFormatted
               value="#{foo.name} : #{foo.type} : #{foo.id}"/>
      </tr:column>
   </f:facet>
</tr:treeTable>

Thanks,
Chris....

Reply via email to