You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2015/09/14 19:50:46 UTC

[jira] [Commented] (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=14743912#comment-14743912 ] 

Leonardo Uribe commented on MYFACES-4004:
-----------------------------------------

The reason why this happens is the message is added on render response time, so h:messages could be rendered before the message is added. There is nothing we can do in this case, because any solution include create a buffer for the response and alter the behavior of h:messages in a way beyond the descriptions on the spec, so I'll close this one as won't fix.

> 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
>            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)