myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kentaro Kinebuchi (JIRA)" <>
Subject [jira] [Commented] (TRINIDAD-2316) Add support for adding a properties Map to UploadedFile
Date Tue, 25 Sep 2012 02:43:07 GMT


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:
>             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:

View raw message