You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mike Cannon-Brookes <mc...@internet.com> on 2000/06/29 07:25:32 UTC

ReadOnly Text Tag back

Hi guys,

The error with Orion and the latest Struts build is back, whenever size is
an attribute of <struts:texttag> Orion gives the error

Property 'size' of bean/tag 'org.apache.struts.taglib.TextTag' is read only

(easily seen by trying to register in the example app)

Why is this?

Mike


RE: ReadOnly Text Tag back

Posted by Kevin Duffey <kd...@buymedia.com>.
Hi,

I was about to send out an email along the lines of the JavaBean speck not
permitting two setter methods of the same name. Beat me to it. Good find.


Re: ReadOnly Text Tag back

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Mike Cannon-Brookes wrote:

> Hi guys,
>
> The error with Orion and the latest Struts build is back, whenever size is
> an attribute of <struts:texttag> Orion gives the error
>
> Property 'size' of bean/tag 'org.apache.struts.taglib.TextTag' is read only
>
> (easily seen by trying to register in the example app)
>
> Why is this?
>
> Mike

The actual cause is that Struts mistakenly included two setter methods (one
taking an int and one a String) for properties like size -- I was trying to
work around differences in JSP implementations where some engines would work
correctly with only an "int" setter and some would not.  It turns out that this
isn't legal according to the JavaBeans programming guidelines.  Therefore, I've
changed to only having a single setter (taking "String") and converting the
values to "int" inside the setter as necessary.

I believe that tonight's build (to be dated 20000630) will include fixes for
all of the cases where this error shows up (on Orion), and the corresponding
"cannot find setter" error from other JSP engines.  Please try it out tomorrow
and let me know if you still have problems.

Craig McClanahan



Error in Example

Posted by Frank Febbraro <ff...@ogi.com>.
Hello group,

I am just starting to play with struts. It looks like exactly what I've been
working towards in my recent architectures. In an attempt to use the example
I have recieved an error.

Error in tag library at: 'struts': The Tag class
'org.apache.struts.taglib.MessageTag' has no setter method corresponding to
TLD declared attribute 'locale'

I get similar errors (not always the same) in  6/19, 6/26, 6.27, and now in
6/29.  Am I doing something wrong, or is there a specific build I should
use.

Thanks for any help,

Frank Febbraro