File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF, strange form action generated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF, strange form action generated" Watch "JSF, strange form action generated" New topic

JSF, strange form action generated

Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Hello all,

I'm having a problem with the JSF form action.

My spring controller is mapped to /users/form.html GET and POST requests:

But JSF generates an action to "/":

So my controller doesn't pick up the action of the form.

If I use firebug to change the action (in firefox) to /users/form.html the action does get picked up as it should by my controller.

I'm using Spring Web Flow btw to my flow handling but I guess this hasn't got anything to do with my issue.

All tips more than welcome since I'm a bit lost here!

Thanks in advance and have a nice day!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I would suspect Spring rather than JSF. It is Spring who specified the form action and passed it to the JSF. Try a Spring forum.
It is sorta covered in the JavaRanch Style Guide.
subject: JSF, strange form action generated
Similar Threads
controller with Spring annotation ?
Spring MVC: Getting resource not available for one Request Mapping while its working for the others.
spring MVC 3 binding help
@Controller annotation query
Within the infrastruture - How to and Where - to intercept HTTP request and to send HTTP response?