Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 81418 invoked from network); 18 Feb 2003 21:47:53 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Feb 2003 21:47:53 -0000 Received: (qmail 21887 invoked by uid 97); 18 Feb 2003 21:49:31 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 21880 invoked from network); 18 Feb 2003 21:49:30 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Feb 2003 21:49:30 -0000 Received: (qmail 81181 invoked by uid 500); 18 Feb 2003 21:47:50 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 81170 invoked from network); 18 Feb 2003 21:47:49 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Feb 2003 21:47:49 -0000 Received: (qmail 21874 invoked by uid 50); 18 Feb 2003 21:49:27 -0000 Date: 18 Feb 2003 21:49:27 -0000 Message-ID: <20030218214927.21873.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 15519] - PropertyUtils.getPropertyType() for java.util.Collection X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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