DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13743>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13743

Need getPropertyType(Class theClass, String propName)

           Summary: Need getPropertyType(Class theClass, String propName)
           Product: Commons
           Version: 2.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Bean Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

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

Reply via email to