Announcement Announcement Module
Collapse
No announcement yet.
JSF FileUpload (Primefaces 3 or Richfaces 4) not working with webflow 2.3.0 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 eventthrows 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

  • #2
    Actually I'm having an error with the Richfaces component (in the view only) there is nothing on the server console

    Attached is a screenshot of that error.

    Comment


    • #3
      Hi

      Even I am having the same issue.
      If any one could help me out, would be greatfull to me

      Comment


      • #4
        It works properly with Webflow 2.2.1 but I need the embedded flow functionality.


        http://www.tara-mediumss.com/male2.jpg
        http://www.tara-mediumss.com/male3.jpg

        Comment

        Working...
        X