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.2.9-core, 1.0.9-core
Reporter: Matthias Weßendorf
Assignee: Matthias Weßendorf
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.