-
1. Re: Seam 2.3 rich:fileupload
tunggad Dec 3, 2012 10:27 AM (in response to oyesiji77)Hi,
We have the same stack as you and also suffering from this issue with rich:fileUpload component. Did you find any solution for it?
Thanks you!
-
2. Re: Seam 2.3 rich:fileupload
tunggad Dec 4, 2012 6:10 AM (in response to oyesiji77)For me, disable the built-in Seam's MultipartFilter did help!
To disable MultipartFilter, you need the following line in components.xml:
<web:multipart-filter disabled="true"/>
Futher, my web.xml has following Richfaces-specific context-params for the fileUpload component:
<context-param>
<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
<param-value>2000000</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.fileUpload.createTempFiles</param-name>
<param-value>false</param-value>
</context-param>
This configuration worked for me, my stack: Seam 2,3, Richfaces 4.2.2-Final, JBoss 7.1
Good luck!
-
3. Re: Seam 2.3 rich:fileupload
ericjia000001 Dec 10, 2012 2:25 AM (in response to tunggad)The configuration works for me too.
But I got another problem in richfaces fileupload component. plz help me.
my jsf page code:
....
<h:form>
<rich:fileUpload fileUploadListener="#{richUploadListener.upload}">
</rich:fileUpload>
</h:form>
...
my java code
....
@Local
public interface IRichUploadListener {
void upload();
void upload(FileUploadEvent event);
}
@Stateless
@Name("richUploadListener")
public class RichUploadListener implements IRichUploadListener {
@Override
public void upload(FileUploadEvent event) {
System.out.println("do upload");
}
@Override
public void upload() {
System.out.println("do upload with no param");//print this;
}
}
The richfaces uploadfile component called public void upload();
How can i get the event param (FileUploadEvent)?