Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.9-core, 1.2.9-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.