-
1. Re: rich:fileUpload byte[] array is null
georgemic Jun 8, 2011 5:13 PM (in response to georgemic)My apologies, that wasn't posted correctly......
I've looked up all discussions within richfaces pertaining to rich:fileUpload and couldn't find where there was any solution in RF3.3.3 where the rich:fileUpload functionality successfully calls the listener with a populated UploadEvent object where the event.getUploadItem().getData() attribute is null (after posting to the listener). I am using IE7, FF3.6.8, Tomcat 6 on a WinXP machine, RichFaces 3.3.3.Final, JSF1.2, Facelets-1.1.14. I am using the code from the demo website. Any help with this would be greatly appreciated.
Here is the missing web.xml snippets too...
<context-param>
<param-name>createTempFiles</param-name>
<param-value>true</param-value>
</context-param>
<param-name>maxRequestSize</param-name>
-
2. Re: rich:fileUpload byte[] array is null
nbelaevski Jun 8, 2011 8:29 PM (in response to georgemic)Hi Michael,
According to documentation, you should be using another method: http://docs.jboss.org/richfaces/latest_3_3_X/en/apidoc_framework/org/richfaces/model/UploadItem.html#getData()