wood burning stoves 2.0*
The moose likes JSF and the fly likes JSF- Getting bean name from the ActionEvent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF- Getting bean name from the ActionEvent" Watch "JSF- Getting bean name from the ActionEvent" New topic
Author

JSF- Getting bean name from the ActionEvent

karthikeyan sai
Greenhorn

Joined: Oct 07, 2009
Posts: 8
I have created a custom action listener(class implementing action listener) and many JSF form use this common action listener
It is possible that to get the bean name from the action event?
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
No, the action event is fired when you perform an action on a component.
Hence the event will give you information only about the component that fired it, the bean has nothing to do with it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSF- Getting bean name from the ActionEvent