[seam-issues] [JBoss JIRA] Created: (SEAMXML-21) Field references should support value attribute

Dan Allen (JIRA) jira-events at lists.jboss.org
Tue Nov 23 13:00:58 EST 2010

Field references should support value attribute

                 Key: SEAMXML-21
                 URL: https://jira.jboss.org/browse/SEAMXML-21
             Project: Seam XML Configuration
          Issue Type: Feature Request
    Affects Versions: 3.0.0.Alpha3
            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:


Since String is a convertable type, the proposed change would allow it to be simplified to:

<String value="fr">

Another example would be assigning an numeric value to a bean field. Presently, the configuration is:


With support for the value attribute, this could be simplified to:

   <x:balance value="100"/>

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