This content has been marked as final.
Show 3 replies
-
1. Re: NullPointerException while UploadItem.getData() in <rich:fileUpload>
ilya_shaikovsky Jun 7, 2010 10:46 AM (in response to elenaveretilo)check CREATE_TEMP_FILES context param in developer reference guide.
-
2. Re: NullPointerException while UploadItem.getData() in <rich:fileUpload>
elenaveretilo Jun 7, 2010 11:44 AM (in response to ilya_shaikovsky)Hi, thanks for quick reply!
I didn't find anything about CREATE_TEMP_FILES context param, but I found out about init-param for RichFaces filter!
I add <init-param> creataTempFiles to RichFaces filter definition and everything works fine)
<!-- Defining and mapping the RichFaces filter --> <filter> <display-name>RichFaces Filter</display-name> <filter-name>richfaces</filter-name> <filter-class>org.ajax4jsf.Filter</filter-class> <init-param> <param-name>createTempFiles</param-name> <param-value>false</param-value> </init-param> </filter>
Is that a correct solution? Or I need to work with CREATE_TEMP_FILES context param?
And one more question - the button "Add" disabled if I add the number of files = uploadsAvailable (for my case it's only one file), and if I click "clear" - this button is still disabled. How can I set it enable, when I click "clear" link?
Thanks!
-
3. Re: NullPointerException while UploadItem.getData() in <rich:fileUpload>
ilya_shaikovsky Jun 8, 2010 2:40 AM (in response to elenaveretilo)sorry my mistake in naming init-param as context-param Your way is correct now.