[
https://issues.apache.org/jira/browse/TRINIDAD-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias Weßendorf resolved TRINIDAD-1224.
------------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.10-core
1.2.10-core
> Support converters for inputFile componet
> -----------------------------------------
>
> Key: TRINIDAD-1224
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1224
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.9-core, 1.2.9-core
> Reporter: Matthias Weßendorf
> Assignee: Matthias Weßendorf
> Fix For: 1.2.10-core, 1.0.10-core
>
> Attachments: 1224_trinidad12.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.