Selectable attribute not working in treeTable

UI Components for JSF
Post Reply
Tunaki
Posts: 13
Joined: 12 Aug 2011, 15:55

01 Dec 2011, 11:56

Hello,

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>
The nodes are constructed with DefaultTreeNode.

Code: Select all

TreeNode documents = new DefaultTreeNode(new Document("Documents", "-", "Folder"), root);
documents.setSelectable(false);
The problem is that in the treeTable rendered, the "documents" tree node is still selectable. When I do this for <p:tree /> instead of <p:treeTable />, it works fine (node is not selectable).

Any idea?
Thanks!
Primefaces 3.0.M3
Mojarra 2.1.3
Tomcat 7.0.22

Tunaki
Posts: 13
Joined: 12 Aug 2011, 15:55

04 Dec 2011, 15:30

It seems that there is a conflict between the dataTable selection and the tree selection. I filed an issue regarding this topic : http://code.google.com/p/primefaces/iss ... il?id=2971
Primefaces 3.0.M3
Mojarra 2.1.3
Tomcat 7.0.22

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests