You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jean-Paul DZISIAK <jp...@cirb.irisnet.be> on 2009/03/03 10:47:31 UTC
[t:inputFileUpload] error while migrating from MyFaces 1.1 to MyFaces 1.2 / trinidad 1.2
Hello,
I do use successfully the following code under MyFaces 1.1.5 / Tomahawk 1.1.6
<h:form enctype="multipart/form-data">
<h:panelGroup>
<t:commandButton styleClass="commandUpload" value="Go" action="#{adminBean.uploadCategories}"/>
<t:outputText value="#{msg['admin.upload.categories.title']}"/>
<t:inputFileUpload id="uploadCat" accept="text/xml"
value="#{adminBean.uploadedCategories}"
required="true"/>
</h:panelGroup>
<t:outputLabel for="uploadCat" value="#{msg['admin.upload.categories.missing']}" rendered="false"/>
<t:message errorClass="formTextError" for="uploadCat" replaceIdWithLabel="true"/>
</h:form>
But under MyFaces 1.2.6 / Tomahawk 1.18 / trinidad 1.2.11
a) there's no more validation (required="true")
b) the backing method "uploadedCategories" is not called
c) the backing method "uploadCategories" got a null stream
> inStream = getUploadedCategories().getInputStream();
Help would be very appreciated...
Jean-Paul