myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Kalkhoff (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Comment Edited] (MYFACES-4004) Non-jsf-attribute enctype of passthrough form generates faces message
Date Wed, 16 Sep 2015 07:36:45 GMT

    [ 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:35 AM:
----------------------------------------------------------------------

[~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.


was (Author: softmetz):
[~lu4242] I think you misunderstood my report (or i miswrote it). I am refering to the fact,
that the attribute "enctypes" 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)

Mime
View raw message