This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF Menu and tree components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Menu and tree components" Watch "JSF Menu and tree components" New topic

JSF Menu and tree components


Joined: Jul 27, 2005
Posts: 3

Can anyone have a sample piece of code for creating jsf menu and tree components.

rajani varma
Ranch Hand

Joined: Dec 21, 2006
Posts: 30
Hello Suresh,
Here is a sample code to create a JSF Menu using tomahawk <t:tree> component. In the JSP,

In the backing bean,

Hope this is what you are looking for. Or else there are some previously discussed topics on jsf menu using tree component. Please refer those also.

Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Hi chilakam,

Please update your display name to match the JavaRanch policy (you must have a first and last name).

Thanks, and welcome to the ranch!


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Ali Al Ali

Joined: Dec 29, 2007
Posts: 18
That's great but how to add an action to the tree nodes???

SCJP 1.4, SCWCD 1.4
Peter Fat

Joined: Oct 18, 2010
Posts: 24

I know this post is quite old, but does someone has an answer to Ali Al Ali? I need to do a JSF menu and I'm walking on the dark here...

I agree. Here's the link:
subject: JSF Menu and tree components
jQuery in Action, 3rd edition