Reputation: 33605
I integrated Tuckey UrlRewrite filter in my JSF application. My URLs now look like:
instead of
The problem is that my JSF forms submits to the old url
and I am getting a FacesFileNotFoundException
.
How can I solve this issue?
Upvotes: 1
Views: 1167
Reputation: 1108642
You've to implement a custom ViewHandler
and override the getActionURL()
method to return the desired form action URL. That's where the forms get its action URL from. This is by the way also what PrettyFaces, the JSF URL rewrite solution, does. You may want to use it instead of reinventing the same wheel. It's by the way open source, so you could just peek around in its source code to see how they did it.
Upvotes: 2