File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

In JSF there is no form action

Vimal Bharathi Andiappan

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: 1323

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

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

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.


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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: In JSF there is no form action
It's not a secret anymore!