my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8801
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...

jQuery in Action, 2nd edition
subject: JSF Menu and tree components
Similar Threads
collapsable list
How to design a Left navigation Menu
JSF div tags
Exam Topics
Tree view for the menu