Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Upload myfaces problem, file property is null

843842Sep 12 2006 — edited Nov 6 2006
Hi,
to upload a file in JSF using myFaces i defined the following JSF:

....
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
...
<h:form enctype="multipart/form-data">
<t:inputFileUpload
id="fileupload"
value="#{businessCaseAspectBean.upFile}"
storage="file"/>
<h:commandButton value="Submit"
action="#{businessCaseAspectBean.upload}" />
</h:form>


- I have defined the filter in web.xml


<!-- Extensions Filter -->
<filter>
<filter-name>extensionsFilter</filter-name>


<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filt�er-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>


The filter seems to be loaded correctly - jscookmenu working for
example ...


The Error:
----------
the form is submitted, #{businessCaseAspectBean.upload} Action called
but the #{businessCaseAspectBean.upFile} is always null / the upfile
Setter is never called...


i'm just getting crazy with that issue - any ideas?
Greets,
Fabio.

P.S. the bean have a session scope.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2006
Added on Sep 12 2006
16 comments
535 views