I have had success overloading properties and used the effect liberally.
I have found that if you are consistent in your overloading, i.e. for
every setter of type x supply a getter of type x as well (at least in
the containers I am using) they seem to function.  

Based on your comments, I have a concern that something will break going
forward.  I looked for overloading in the spec (attached) and they don't
specifically speak to the issue.

        http://java.sun.com/products/javabeans/docs/beans.101.pdf

Could you point me toward some documentation which gives more details?

Thanks

Edgar

-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 24, 2002 9:12 AM
To: Struts Developers List
Subject: Re: Overloaded Setters in Form


It's contrary to the JavaBean specification to overload the 
property methods (getters and setters), if that's what you are 
trying to do. So, it won't work, because it's not suppose to.

-Ted.


12/23/2002 10:31:41 PM, Carl Fyffe <[EMAIL PROTECTED]> wrote:
>Seasons greetings friends!
>
>I sent an email inquiring about overloaded setters in Forms to
>the
>struts-user mailing list.  I was told that I needed a BeanInfo. 
> I gave
>the BeanInfo a try and it did not work.  So, I started reading
>code and
>decided that an overloaded example in TestBean was needed.  Of 
course it
>now fails just like my example.  I am stuck there.  The BeanInfo's that
>I have created, with and without my overloaded methods, do not
> work.
>Does anyone have a TestBeanBeanInfo that works?  Any advice would
> be
>greatly appreciated.
>
>Carl
>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-dev-
[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:struts-dev-
[EMAIL PROTECTED]>
>
>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to