You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ralph Schaer <sc...@ess.ch> on 2000/06/12 15:46:16 UTC

more bugs

Hello

I've found some bugs.

RadioTag.java
Line 190 and 191 Writes two quote marks but only one needed
 190: StringBuffer results = new StringBuffer("<input type=\"radio\"");
 191: results.append("\" name=\"");
change line 191 : results.apend(" name=\"") solves the problem.


Same error in the source code for checkbox tag

CheckboxTag.java
167: StringBuffer results = new StringBuffer("<input type=\"checkbox\"");
168: results.append("\" name=\"");


Documentation tags.html
radio tag

The description about the name attribute says
"Name of this input field, and the name of the corresponding bean property
if value is not specified."
But the value attribute is required. You cannot write the tag without a
value attribute

"The corresponding bean property (if any) must be of type boolean. "
IMHO this is false. The property must be of type String.



Ralph







Re: more bugs

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Thanks ... these just got patched as well.

Craig


Ralph Schaer wrote:

> Hello
>
> I've found some bugs.
>
> RadioTag.java
> Line 190 and 191 Writes two quote marks but only one needed
>  190: StringBuffer results = new StringBuffer("<input type=\"radio\"");
>  191: results.append("\" name=\"");
> change line 191 : results.apend(" name=\"") solves the problem.
>
> Same error in the source code for checkbox tag
>
> CheckboxTag.java
> 167: StringBuffer results = new StringBuffer("<input type=\"checkbox\"");
> 168: results.append("\" name=\"");
>
> Documentation tags.html
> radio tag
>
> The description about the name attribute says
> "Name of this input field, and the name of the corresponding bean property
> if value is not specified."
> But the value attribute is required. You cannot write the tag without a
> value attribute
>
> "The corresponding bean property (if any) must be of type boolean. "
> IMHO this is false. The property must be of type String.
>
> Ralph