[
https://issues.apache.org/jira/browse/MYFACES-3716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13666357#comment-13666357
]
Dora Rajappan commented on MYFACES-3716:
----------------------------------------
Added this public void encodeEnd(FacesContext facesContext, UIComponent
component)
throws IOException
{
super.encodeEnd(facesContext, component);
if(!facesContext.isProjectStage(ProjectStage.Production))
{
String content = ((HttpServletRequest)
facesContext.getExternalContext().getRequest()).getContentType();
if(content==null || !content.contains("multipart/form-data")){
//Add facemessage
FacesMessage message = new FacesMessage("file upload
requires a form with enctype equal to multipart/form-data");
facesContext.addMessage(component.getClientId(),
message);
}
}
}
> Implement h:inputFile
> ---------------------
>
> Key: MYFACES-3716
> URL: https://issues.apache.org/jira/browse/MYFACES-3716
> Project: MyFaces Core
> Issue Type: Task
> Components: JSR-344
> Reporter: Leonardo Uribe
>
> Implement h:inputFile as described in the spec
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira