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] Updated: (BEANUTILS-235) [beanutils] Need getPropertyType(Class theClass, String propName)
Date Mon, 06 Nov 2006 05:29:38 GMT
     [ http://issues.apache.org/jira/browse/BEANUTILS-235?page=all ]

Niall Pemberton updated BEANUTILS-235:
--------------------------------------

    Bugzilla Id:   (was: 13743)
    Component/s: Bean / Property Utils

> [beanutils] Need getPropertyType(Class theClass, String propName)
> -----------------------------------------------------------------
>
>                 Key: BEANUTILS-235
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-235
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 1.5
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Andrea Aime
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> I've developed a small bean based TableModel, that I use to
> display list of beans in JTables. It works nicely as long
> as I don't need to display a nested property in the columns,
> thats why: the getColumnClass method passes only a columnIndex
> information and wants the Class of that column. If I use the
> getPropertyDescriptors I would need a lot of extra code to understand
> that a property is a nested one, load the correspondend class, and
> so on (and I think that this code is the job of BeanUtils), if I
> create a new istance of the class with Class.newIstance the dependent
> object are set to null and getPropertyType fails...
> So I think that it would be nice to complete the functionality of
> the PropertyUtils class with a getPropertyType(Class theClass, String propName)
> with the ability to handle also nested properties...

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


Mime
View raw message