Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Menu and tree components  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
Suresh
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks,
Rajani.
 
author
Sheriff
Posts: 8955
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

Bert
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great but how to add an action to the tree nodes???
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

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...

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!