JSF FileUpload (Primefaces 3 or Richfaces 4) not working with webflow 2.3.0
Hi I was wondering if anyone managed to use the fileUpload components of either of the component suites (Primefaces 3 or Richfaces 4).
It works properly with Webflow 2.2.1 but I need the embedded flow functionality.
I read somewhere (sorry I cannot remember where) that apparently Webflow breaks the multipart request.
I do not get any error messages it's just that my listener method never gets called.
any Ideas?
Here is an example of the code i'm trying to implement
the view :
PHP Code:
<h:form id="form2" prependId="false" >
<rich:fileUpload
fileUploadListener="#{fileUploadHandler.listener}"
id="upload"
acceptedTypes="jrxml">
<a4j:ajax event="uploadcomplete" execute="@none" render="info" />
</rich:fileUpload>
</h:form>
The Listener
PHP Code:
import org.richfaces.event.FileUploadEvent;
import org.richfaces.model.UploadedFile;
import org.springframework.stereotype.Component;
@Component
public class FileUploadHandler {
private UploadedFile uploadedFile;
public void listener(FileUploadEvent event) throws Exception {
UploadedFile item = event.getUploadedFile();
System.out.println(item.getName());
}
Thanks in advance
-------------
I'm using:
Spring Webflow Release 2.3.0
Primefaces 3.0.M1 or Richfaces 4.0.0Final
Mojarra JSF 2.0.5-b02
Spring 3.0.5.RELEASE