p:tree toggleCheckbox behavior

UI Components for JSF
Post Reply
dar1
Posts: 2
Joined: 17 Sep 2011, 07:33

17 Sep 2011, 07:57

I have been using the PrimeFaces tree, and recently upgraded to PrimeFaces 3.0.M2. Previously, there was an attribute that could be set to cascade the checkbox selections up or down. That was a nice feature, but is no longer available with the current tree. Looking at the JavaScript code for the tree, it now cascades selection both up and down in the "toggleCheckbox" function (I checked the M3 code and it is that way there also). For my uses, and I suspect for many other users, the desired default functionality would be to cascade the selection downward and not upward. I worked around this by commenting out the "//propagate selection up"" section in tree.js. However, I think cascading downward should be an option or the default behavior for tree checkbox selection. What do other users prefer for this behavior? By the way, PrimeFaces is a splendid tool, and I love using it. Thanks for all your hard work.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Seo-Ul-But and 19 guests