Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1527

Using <tr:inputFile> fails when using PrettyFaces URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.11-core
    • None
    • Components
    • None
    • Ubuntu 9.10, MyFaces-core 1.2.7, Trinidad 1.11 ,Facelets 1.11

    Description

      So far, what I can tell is:

      When using an action listener on tr:inputFile, the ActionEvent is
      never fired, and when using direct value binding
      (value="#

      {foo.file}

      "), the binding is never bound to the backing bean.
      The file is actually uploaded, and is wrapped with trinidad's
      version FileUploadRequestWrapper (or whatever it's called, sorry I
      don't have it up at the moment.)

      The thing that confuses me is: After doing some URL parsing,
      PrettyFaces simply forwards all requests to FacesServlet, using native
      JSF viewIds... so I'm not sure why Trinidad would be breaking on a
      Pretty URL as opposed to a non-Pretty URL. I thought it might be
      related to an issue with my PrettyViewHandler, but that method is only
      called once by the form, which is correct behavior in this specific
      scenario.

      A sample maven project to reproduce this can be found here:
      http://www.kuro-shishi.be/static/brokenupload-maven-project.zip

      Attachments

        Activity

          People

            Unassigned Unassigned
            lincolnbaxter (d) Lincoln Baxter III
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: