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

Support converters for inputFile componet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9-core, 1.2.9-core
    • 1.2.10-core, 1.0.10-core
    • None
    • None

    Description

      Currently nested converters for <inputFile> aren't supported.

      Something like this should be possible:
      <inputFile>
      <customConverter />
      </inputFile>

      The "problem" is, that getAsObject(....) only takes String, instead of Object.
      So, the idea is, that the SimpleInputFileRenderer uses a convention, to pass in a (unique) identifier. Before that, the actual file is stored in the requestMap.
      =>externalContext.getRequestMap().put(someKeyForTheUploadedFile, theActualUploadedFileImplementation);

      So... a custom converter would look for the key in the reqMap to do whatever "transformation" is needed.

      Attachments

        1. 1224_trinidad12.patch
          4 kB
          Matthias Wessendorf

        Activity

          People

            matzew Matthias Wessendorf
            matzew Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: