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