This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF Tree with check box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Tree with check box" Watch "JSF Tree with check box" New topic

JSF Tree with check box

Renjith Ramachandran

Joined: Jan 08, 2007
Posts: 1
Our project requires a jsf tree component with check box in each node. It requires expand all and contract all functionality. Also each node will have large number of sub nodes ,up to 50000. We are using IBM implementation of JSF with RAD6 as the IDE. I tried using the odc:tree included in the JWL. But when the number of nodes increases beyound 50000 ,browser(IE) hangs. Can we use tomahawk's tag for tree with ibm implementation? Will there be any conflict?Also will it be able to handle large amount of data?
Can any one give good suggestion on how to implement this?
Alberto Fdez

Joined: May 11, 2009
Posts: 4
Also, I have to use a tree with checkbox on the nodes. This tree must be built dinamically using java code. Could anyone help me, please? Could anyone send a piece of code to see it, please?
Nitin Tammewar

Joined: Jul 13, 2009
Posts: 1
can you please send me the code how to bind Data to <odc:tree> dynamically
Alberto Fdez

Joined: May 11, 2009
Posts: 4
Hello Nitin! My question was about what you have already done. I need to do what you have already done. What you have done is a tree with check box nodes and I can't get it. So, if you could send me the code with a brief explanation to use, I would be thankful.
shyam sunderbm

Joined: Feb 29, 2008
Posts: 1

I am trying to implement preselect function for a JSF tree with checkboxes. (My Existing implementation is using JSF odc:tree in RAD6).
With my current setup,I am not able to find a solution for preselecting nodes in odc:tree.
Anyone ,
If implemented this function then please suggest a solution.
Would really appreciate your suggestion/proposition to my problem.

Thanks in advance!!

Alberto Fdez

Joined: May 11, 2009
Posts: 4
Hello shyam,

I could do the tree with checkboxes dinamically (at runtime). But, I am using woodstock libraries and I dont know if my solution is usefull for you. Besides that, I dont know what jsf library is the alias 'odc' for.

[Thumbnail for TreeWithCheckBoxes.GIF]

I agree. Here's the link:
subject: JSF Tree with check box
Similar Threads
JTree problem (Pushing MVC?)
Can any one solve this Problem
JSF Tree Component using AJAX
tree with check box.
How to get ondblclick event on <s:treenode/> or <s:tree />