[ 
https://issues.apache.org/jira/browse/TRINIDAD-2316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott O'Bryan updated TRINIDAD-2316:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0-core
         Assignee: Jeanne Waldman
           Status: Resolved  (was: Patch Available)

r1395779 | jwaldman | 2012-10-08 21:07:37 +0000 | 3 lines
Changed paths:
   A 
/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal
   A 
/myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/marshal/MarshalingService.java

TRINIDAD-2316 Add support for adding a properties Map to UploadedFile 
I forgot to add the new file, MarshalingService.java. It was in the patch.
Thanks to Kentaro Kinebuchi for the patch


> 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
>            Assignee: Jeanne Waldman
>             Fix For: 2.1.0-core
>
>         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 was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to