Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call a backing bean's method through href

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! I want to be able to call a backing bean's method through an anchor tag. For example, I have a backing bean named loginManager and it has a method called logout. How would I be able to call that through an href? Which JSF component should I use? Thanks!
 
Daniel Amadei
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

<h:commandLink>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic