commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BEANUTILS-215) BeanUtilsBean: Set a mapped/indexed property, for example "property(time)[0]"
Date Mon, 02 Jul 2007 03:54:04 GMT

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

Niall Pemberton resolved BEANUTILS-215.
---------------------------------------

    Resolution: Duplicate

Resolved by the changes for BEANUTILS-247 (improved indexed property support) and BEANUTILS-43
(improved mapped property support).

> BeanUtilsBean: Set a mapped/indexed property, for example "property(time)[0]"
> -----------------------------------------------------------------------------
>
>                 Key: BEANUTILS-215
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-215
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Expression Syntax
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ludwig Wensauer
>            Priority: Minor
>             Fix For: 1.8.0
>
>         Attachments: BEANUTILS-215.patch
>
>
> From line 1014 ff there is the following piece of code:
>         try {
>             if (index >= 0) {
>                 getPropertyUtils().setIndexedProperty(target, propName,
>                                                  index, newValue);
>             } else if (key != null) {
>                 getPropertyUtils().setMappedProperty(target, propName,
>                                                 key, newValue);
>             } else {
>                 getPropertyUtils().setProperty(target, propName, newValue);
>             }
> ...
> That's good for mapped OR indexed properties, but unfortunatly i have both at
> the same time. So index is >= 0 and key is also != null.
> My property-name looks like this one here: 
> property(time)[0]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message