where is the action class in JSF?
Hi All,
In JSF how to write a action class, in Struts we have Action class and Spring we have a action class.so the request goes to the action class.
but how about JSF, i am trying to find it , but the examples shows very basic stuff, like bean with getter and setter.
how to call action class in JSF?..
please provide me information.
thanks in advance
Kishan
In JSF almost all "actions" are done in the backing beans. However, there is no such thing as a Action class in JSF, that is a struts thing.
Look at the commandButton/commandLink action attribute. That is where the bulk of any actions will occur. Secondly, look at ActionListener. Though, to be honest, I haven't found a lot of use for an ActionListener (nothing you can't accomplish better by using the action attribute).
I would highly recommend you get a book on JSF. You're going to get very frustrated with JSF if you are coming at it with the misconception that it is like struts.
CowKing