This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Call a backing bean's method through href Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Call a backing bean Watch "Call a backing bean New topic
Author

Call a backing bean's method through href

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
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!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Daniel Amadei
Ranch Hand

Joined: Mar 29, 2005
Posts: 94
Hi!

<h:commandLink>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Call a backing bean's method through href