Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

h:form enctype="multipart/form-data" gets removed

843844Oct 22 2007 — edited Oct 23 2007
I tried to create a file upload page using tomahawk 1.1.6, JSF RI 1.2_05-b06-FCS and facelets.

What I found is that the h:form removes the enctype="multipart/form-data" when rendering the JSF page.
In the resulting html page the enctype is entirely missing.
As a result the fileupload doesn't work, since the browser doesn't even send the file.

I read that JSF doesn't support multipart messages, but with this behaviour it prevents other libs like tomahawk accomplishing this task. Does anyone know whether there a way to solve this issue other then patching the FormRenderer?

regards,
Artur
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2007
Added on Oct 22 2007
3 comments
151 views