I have problem with JSF2 form with “multipart/form-data” enctype. When request is handled through ‘addRule(Join.path(“/uprava-profilu”).to(“/myProfileEdit.html”)’, bean action method is not called. When I remove this rule and go through myProfileEdit.html directly, form works.
I uploaded simple test project. It has dependency on PrimeFaces for org.primefaces.webapp.filter.FileUploadFilter. PrimeFace’s filter is quite simple and uses commons fileupload for parsing multipart content.
In attached project, /works.html works, but /index does not.
Yes, other filters may need to add <dispatcher>FORWARD</dispatcher> to their definition because Rewrite “forwards” the request internally and you need this setting to also apply the filter for these forwarded requests.
Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Rewrite Users’ is closed to new topics and replies.
Comments are closed.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.