You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/11/06 07:09:43 UTC
[jira] Updated: (BEANUTILS-140) [beanutils] LocaleBeanUtils
setProperty does not work on nested property
[ http://issues.apache.org/jira/browse/BEANUTILS-140?page=all ]
Niall Pemberton updated BEANUTILS-140:
--------------------------------------
Bugzilla Id: (was: 30203)
Component/s: Locale BeanUtils / Converters
> [beanutils] LocaleBeanUtils setProperty does not work on nested property
> ------------------------------------------------------------------------
>
> Key: BEANUTILS-140
> URL: http://issues.apache.org/jira/browse/BEANUTILS-140
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Locale BeanUtils / Converters
> Environment: Operating System: All
> Platform: All
> Reporter: Marco La Porta
>
> LocaleBeanUtils setProperty does not work on nested property.
> I think the problem is in the method definePropertyType(Object target, String
> name, String propName).
> When property is a nested property ("prop1.propnested") target is the result
> of a call of the "prop1" getter on the oroginal bean, name is the property
> name complete ("prop1.propnested") and propName is the property name in target
> object ("propnested").
> At line 601 the property descriptor is defined as
> descriptor = PropertyUtils.getPropertyDescriptor(target, name);
> and in case of nested propery it is never found (null)
> I think the correct line 601 is
> descriptor = PropertyUtils.getPropertyDescriptor(target, propName);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org