Results 1 to 4 of 4

Thread: JSF FileUpload (Primefaces 3 or Richfaces 4) not working with webflow 2.3.0

  1. #1
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Question 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. #2
    Join Date
    Mar 2011
    Location
    Strasbourg,France
    Posts
    24

    Default

    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.
    Attached Images Attached Images

  3. #3
    Join Date
    Apr 2011
    Posts
    1

    Default

    Hi

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

  4. #4
    Join Date
    Nov 2011
    Posts
    3

    Default

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




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •