You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Christian Kalkhoff (JIRA)" <de...@myfaces.apache.org> on 2015/09/16 09:36:45 UTC

[jira] [Comment Edited] (MYFACES-4004) Non-jsf-attribute enctype of passthrough form generates faces message

    [ https://issues.apache.org/jira/browse/MYFACES-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14747091#comment-14747091 ] 

Christian Kalkhoff edited comment on MYFACES-4004 at 9/16/15 7:36 AM:
----------------------------------------------------------------------

[~lu4242] I think you misunderstood my report (or i miswrote it). I am refering to the fact, that the attribute "enctype"'s value is ignored, so the error is triggered by myfaces when I add a file upload. IMHO the form should get enctype="multipart/form-data" in the output (which happens) and myfaces should also use the value to do validation. I hope that makes things clearer.


was (Author: softmetz):
[~lu4242] I think you misunderstood my report (or i miswrote it). I am refering to the fact, that the attribute "enctype"' value is ignored, so the error is triggered by myfaces when I add a file upload. IMHO the form should get enctype="multipart/form-data" in the output (which happens) and myfaces should also use the value to do validation. I hope that makes things clearer.

> Non-jsf-attribute enctype of passthrough form generates faces message
> ---------------------------------------------------------------------
>
>                 Key: MYFACES-4004
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4004
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.8
>         Environment: TomEE 1.7.1, Linux
>            Reporter: Christian Kalkhoff
>            Assignee: Leonardo Uribe
>            Priority: Minor
>
> I created a html5 form with jsf:action which makes it a <h:form>. I added the attribute enctype to support file uploads which works fine then. 
> On submitting the form (using AJAX) I get the message:
> {code}
> These unhandled FacesMessages are: 
> - file upload requires a form with enctype equal to multipart/form-data
> {code}
> If i add jsf: to enctype (jsf:enctype) the message disappears.
> The message does not show up in my h:messages lists.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)