commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15519] - PropertyUtils.getPropertyType() for java.util.Collection
Date Tue, 18 Feb 2003 21:49:27 GMT
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=15519>.
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=15519

PropertyUtils.getPropertyType() for java.util.Collection





------- Additional Comments From epabst@discoverfinancial.com  2003-02-18 21:49 -------
Another workaround has worked VERY nicely for me:  add an indexed (or mapped) 
property to the parent bean.  E.g. if you have person.getPhones() that returns 
a List, add also person.getPhone(int) (and optionally person.setPhone(int)).  
Then in your property path, instead of trying to do 
    "person.phones[0].areaCode"
you would do 
    "person.phone[0].areaCode"

Hope this helps!

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