Got it !
The Tomahawk filter "org.apache.myfaces.webapp.filter.ExtensionsFilter" MUST be
defined before the Trinidad one
"org.apache.myfaces.trinidad.webapp.TrinidadFilter"
Jean-Paul
----- Original Message -----
From: Jean-Paul DZISIAK
To: MyFaces Discussion
Sent: Tuesday, March 03, 2009 10:47 AM
Subject: [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