I’m implementing RichFaces checkbox tree, and I’ve got a problem… I need to mark all the child nodes as selected when user selects root node…
I guees it should be done using some javascript function called when users selects root node…
any ideas??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After spending a lot of time with javascript, I decided to move to server side.
So, to implement the above feature tree nodes are sending ajax requests on each click, then server-side performs selection or deselection of all the child nodes, and after request processing is finished tree component gets rerendered. The following code demonstrates single node content:
Where _node.select(_node.selected) does all the job on server side.