[seam-issues] [JBoss JIRA] Moved: (SEAMCONFIG-31) Field references should support value attribute

Jason Porter (JIRA) jira-events at lists.jboss.org
Tue Apr 19 17:12:46 EDT 2011


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

Jason Porter moved SEAMXML-21 to SEAMCONFIG-31:
-----------------------------------------------

              Project: Seam Config (fixed)  (was: Seam Config)
                  Key: SEAMCONFIG-31  (was: SEAMXML-21)
             Workflow: Seam Workflow  (was: GIT Pull Request workflow )
    Affects Version/s:     (was: 3.0.0.Alpha3)


> Field references should support value attribute
> -----------------------------------------------
>
>                 Key: SEAMCONFIG-31
>                 URL: https://issues.jboss.org/browse/SEAMCONFIG-31
>             Project: Seam Config (fixed)
>          Issue Type: Feature Request
>            Reporter: Dan Allen
>
> Field references should support a value attribute if the field type is a convertable type* (Seam XML knows how to turn it into an object). This will drastically simplify the appearance and verbosity of a field definitions, particularly virtual fields.
> Consider the configuration of the default locale as an example. Presently, it would be configured as follows:
> <String>
>    <Produces/>
>    <lc:DefaultLocale/>
>    <value>fr</value>
> </String>
> Since String is a convertable type, the proposed change would allow it to be simplified to:
> <String value="fr">
>    <Produces/>
>    <lc:DefaultLocale/>
> </String>
> Another example would be assigning an numeric value to a bean field. Presently, the configuration is:
> <x:Account>
>    <x:balance>
>       <value>100</value>
>    </x:balance>
> </x:Account>
> With support for the value attribute, this could be simplified to:
> <x:Account>
>    <x:balance value="100"/>
> </x:Account>
> If the type being configured has a value property, then of course the value attribute would assign the value of property named "value" instead of being treated as the overall value of the field.
> * Examples of convertable types are string, date, number, etc.

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