I am using the treeTable component to display data. I would like some nodes not to be selectable.
Code: Select all
<p:treeTable value="#{bean.root}" var="data" selectionMode="single" selection="#{bean.selectedNode}">
...
</p:treeTable>
Code: Select all
TreeNode documents = new DefaultTreeNode(new Document("Documents", "-", "Folder"), root);
documents.setSelectable(false);
Any idea?
Thanks!