You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/02/18 22:49:27 UTC
DO NOT REPLY [Bug 15519] -
PropertyUtils.getPropertyType() for java.util.Collection
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