File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes In JSF there is no form action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "In JSF there is no form action" Watch "In JSF there is no form action" New topic
Author

In JSF there is no form action

Vimal Bharathi Andiappan
Greenhorn

Joined: Jun 12, 2008
Posts: 7
I am new to JSF, before that i am working in JSP and Struts.In Jsp page Form tag having action method but in JSF there <h:form> there is no action attribute instead of action what method i wants to use in JSF and forward my page into Servlet class.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Javaranch has a separate forum for JSF
[ August 05, 2008: Message edited by: Muhammad Saifuddin ]

Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
R Ben Parsons
Greenhorn

Joined: Aug 05, 2008
Posts: 9
Hi Vimal,

Instead of a form action, attach an action to your submit mechanism (usually a button or a link) and put the method in your pagecode.

e.g.


R. Ben Parsons<br />SCJA
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16012
    
  19

The architecture of Struts is basically a flow-of-control model, where you chain forms and actions.

The architecture of JSF is more of an MVC model, where the same form is worked with until one of the action methods interacts with the framework to display a different form.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In JSF there is no form action