UNSUBSCRIBE!!!

-----Ursprungliche Nachricht-----
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 31. Juli 2001 23:52
An: [EMAIL PROTECTED]
Betreff: Re: Java Beans and JSP Question.


On Tue, 31 Jul 2001, Dan Hinojosa wrote:

> I have a standard java bean.  The different thing about it is that I
> usually have two overloaded set methods per attribute.

Doing this violates the design patterns for getters and setters listed in
the JavaBeans specification.  Therefore, the JDK's introspection logic
will not recognize this as a property.

You need to either have only one setter (with a type that matches the
corresponding getter), or you must define a BeanInfo class that
specifically lists the method names and parameter types of your getter and
setter methods.

Craig McClanahan

Reply via email to