my dog learned polymorphism
The moose likes Java in General and the fly likes JavaBeans Bound Properties Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JavaBeans Bound Properties Question" Watch "JavaBeans Bound Properties Question" New topic
Author

JavaBeans Bound Properties Question

Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1112

How to obtain a list of the names of a java bean's bound properties?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16686
    
  19

Avi Abrami wrote:How to obtain a list of the names of a java bean's bound properties?


One option would be to use the java.beans.Introspector class... from this class, you can get the beaninfo for the javabean, which you can use to get an array of all the properties descriptors, and then, you can use the isBound() method of the descriptors to get the ones that you want.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1112

Thank you, Henry!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaBeans Bound Properties Question
 
Similar Threads
EL Query
Bound & Constraints properties
JSF - Passing value from a SelectBooleanCheckBox to a command button
WA #1.....word association
bound property