Hi Chris,
1. it's probably related to using rowSelection="multiple"
if you don't specify that, the links will not be rendererd
3. the model it's a tree, so the leafs don't have the expand/collapse icon
rendered
BUT for a node to be a leaf it has to have the 'children' property set to
null (not an empty list)
On 10/11/07, Chris Hane <[EMAIL PROTECTED]> wrote:
>
> 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....
>
--
Cristi Toth
-------------
Codebeat
www.codebeat.ro