[
https://issues.apache.org/jira/browse/TRINIDAD-2316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462377#comment-13462377
]
Kentaro Kinebuchi commented on TRINIDAD-2316:
---------------------------------------------
Uploaded a patch which implements this functionality
> Add support for adding a properties Map to UploadedFile
> -------------------------------------------------------
>
> Key: TRINIDAD-2316
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2316
> Project: MyFaces Trinidad
> Issue Type: New Feature
> Components: Components
> Affects Versions: 2.1.0-core
> Reporter: Kentaro Kinebuchi
> Attachments: Trinidad-2316.patch
>
>
> This enhancement is so that arbritrary properties can be specified for
> uploaded files. For example, a description field can be specified for a file.
> Support should be added for returning a map of properties from the
> UploadedFile object. Rather than adding new methods to the UploadedFile
> interface and breaking backward compatibility, the proposal is to create a
> new abstract class called AbstractUploadedFile with a getProperties() method
> which returns Map<String, Object> and have UploadedFileImpl extend this
> class. Any consumers of UploadedFiles can then check for if it extends this
> abstract class to see if properties are available. Also, custom file
> processors will need to return UploadedFile instances which extend
> AbstractUploadedFile if they need to have the framework add properties.
> The file properties will be submitted together with the file as a parameter
> on the form and the value will be marshalled into XML.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira