p:tree multiple selections bug?

UI Components for JSF
Post Reply
MarkB
Posts: 17
Joined: 17 Nov 2010, 07:58

16 Mar 2011, 02:01

If I use a p:tree control with mulitple selections, and choose to initialise some selections, then the tree displays correctly with nodes showing as selected. However, when processing the form that contains the tree control, I find that:
  • If the user change one or more selection then the specificed selection TreeNode array is correct and contains all selected nodes.
  • If the user does NOT make any changes to the initial selection(s) then the specificed selection TreeNode array is empty.
I get around this behaviour by always walking to TreeNode hierachy associated with the p:tree control and directly interrogating each TreeNode using the isSelected() method. Therefore I have a satisfactory workaround.

Has anyone noticed the same behaviour?
I understand that p:tree is being rewritten for release 3.0, so is there any point in raising a bug?
Primefaces 2.2.1 ; Glassfish 3.0.1 (including Mojarra 2.0.3) ; NetBeans 6.9.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests