[seam-issues] [JBoss JIRA] Updated: (SEAMXML-22) support collection and array virtual fields

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Wed Dec 22 05:22:17 EST 2010


     [ https://issues.jboss.org/browse/SEAMXML-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Bryzak updated SEAMXML-22:
--------------------------------

    Fix Version/s: 3.0.0.Beta3
                       (was: 3.0.0.Beta2)


> support collection and array virtual fields
> -------------------------------------------
>
>                 Key: SEAMXML-22
>                 URL: https://issues.jboss.org/browse/SEAMXML-22
>             Project: Seam Config
>          Issue Type: Feature Request
>    Affects Versions: 3.0.0.Beta1
>            Reporter: Dan Allen
>             Fix For: 3.0.0.Beta3
>
>
> Add support for defining virtual fields that are of type collection or array. This should work already in theory, but no matter what I tried, I got errors, so it may simply be broken. There is also one piece missing. There needs to be a way to specify the collection type parameter (item type). I'm envisioning something like this:
> <List>
>    <Integer/> <-- defines item type
>    <app:DiceValues/>
>    <value>1</value>
>    <value>2</value> 
>    <value>3</value>
>    <value>4</value>
>    <value>5</value>
>    <value>6</value>  
> </List>
> defines the virtual field:
> @DiceValues
> List<Integer> anonymous;
> In the same way, we should support virtual arrays:
> <array>
>    <Integer/>
>    <app:DiceValues/>
>    <value>1</value>
>    <value>2</value> 
>    <value>3</value>
>    <value>4</value>
>    <value>5</value>
>    <value>6</value>  
> </array>
> producing:
> @DiceValues
> Integer[] anonymous;
> The nested element for the type is a bit awkward, though (I suggested it because it's currently how array's are typed). It would make more sense to use an attribute here:
> <List itemType="java.lang.Integer">
>    ...
> </List>
> Also, a way to control the implementation type:
> <List type="java.util.ArrayList" itemType="java.lang.Integer">
>    ...
> </List>
> Once working, there definitely needs to be an example (or two) added to the documentation. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list