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)
You must be logged in to reply to this topic.
Comments are closed.
Do you play Magic?
Get TopDecked MTG, the essential all-in-one Magic App, built by players, for players. Free to use, forever.
Deck Simulator (3d)
Cards & Prices
Top 8 Decks & Metagame
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!