-
1. Re: Upload documents with lager files in richfaces 4
turocabrera Jul 1, 2011 4:27 PM (in response to pavna)Hi, I am using Rich4 and my web.xml have this configuration:
<context-param>
<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
<param-value>10000000</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.fileUpload.createTempFiles</param-name>
<param-value>true</param-value>
</context-param>
-
2. Re: Upload documents with lager files in richfaces 4
ionutvaidianu May 14, 2012 2:39 PM (in response to turocabrera)Sorry for bringing up again a discussion so old, but what was the solution for this problem. I tried with the parameters in both way (prefixed and not prefixed) in web.xml, but in both cases the temporary files are not created. Can somebody post a complete working web.xml sample? Are these aprameters still requiered in web.xml ... can they be configured somewhere else? What was changed in 4.x.x and how should the fileUpload component be configured now?
My web.xml contains what's bellow, without any filter definition:
<context-param> <param-name>org.richfaces.fileUpload.maxRequestSize</param-name> <param-value>10000000</param-value> </context-param> <context-param> <param-name>org.richfaces.fileUpload.createTempFiles</param-name> <param-value>true</param-value> </context-param> RichFaces version is 4.2.0.
-
3. Re: Upload documents with lager files in richfaces 4
ionutvaidianu May 14, 2012 3:36 PM (in response to ionutvaidianu)After the latest discoveries I have done the two parameters are useless and not needed with RichFaces 4.2.0. The files are laways saved in the temporary folder under JBoss server and it is the responsability of the upload bean to make a copy of the files from the temporary folder before they are deleted automatically. The copy / move should be done before the end of method "public void listener(FileUploadEvent event) throws Exception" in the upload bean.
I hope this helps somebody ... for me it was a royal PITA to figure this out because the entire compatibility is broken and there is no documentation to be found