[seam-issues] [JBoss JIRA] Commented: (SEAMXML-25) Introduce s:values tag

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Feb 1 09:15:39 EST 2011


    [ https://issues.jboss.org/browse/SEAMXML-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579332#comment-12579332 ] 

Jozef Hartinger commented on SEAMXML-25:
----------------------------------------

or is it possible to leave out the <s:value> tag completely for collections? (according to docs this can be done for a String field)

<e:Foo>
<e:bars>
<e:Bar id="1"/>
<e:Bar id="2"/>
<e:Bar id="3"/>
<e:Bar id="4"/>
</e:bars>
</e:Foo>

> Introduce s:values tag
> ----------------------
>
>                 Key: SEAMXML-25
>                 URL: https://issues.jboss.org/browse/SEAMXML-25
>             Project: Seam Config
>          Issue Type: Feature Request
>          Components: XML Provider
>    Affects Versions: 3.0.0.Beta1
>            Reporter: Jozef Hartinger
>            Assignee: Stuart Douglas
>            Priority: Minor
>             Fix For: 3.0.0.Beta3
>
>
> Currently, it is quite verbose to populate a collection with configured object instances using the XML module.
> For example:
> Foo is a class having a collection (bars) of Bars
> <e:Foo>
>    <e:bars>
>       <s:value>
>          <e:Bar id="1"/>
>       </s:value>
>       <s:value>
>          <e:Bar id="2"/>
>       </s:value>
>       <s:value>
>          <e:Bar id="3"/>
>       </s:value>
>       <s:value>
>          <e:Bar id="4"/>
>       </s:value>
>    </e:bars>
> </e:Foo>
> If the s:values tag is introduced, it'll make the configuration less verbose
> <e:Foo>
>    <e:bars>
>       <s:values>
>          <e:Bar id="1"/>
>          <e:Bar id="2"/>
>          <e:Bar id="3"/>
>          <e:Bar id="4"/>
>       </s:values>
>    </e:bars>
> </e:Foo>

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