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
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.
I agree. Here's the link:
subject: JSF, strange form action generated
It's not a secret anymore!