OK.  I think I've proven to myself that this is not a bug, as I can set
disabled="true" and everything works fine.  When I try to use either a
session variable (see below) or create a temporary bean, I get strange
messages, like 'Can't convert java.lang.Object to boolean'.  I'm at a loss.


What's the right way to do this?

Jerry

> -----Original Message-----
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 2:45 PM
> To: '[EMAIL PROTECTED]'
> Subject: [BUG] html:submit disabled= requires boolean value?
> 
> 
> I'm setting the value of the disabled= parameter on a 
> <html:submit> tag, and
> I'm getting the following error:
> 
>       Incompatible type for method. Can't convert java.lang.String to
> boolean. _jspx_th_html_submit_2.setDisabled(buttonStatus);
> 
> The code in the .JSP looks like this.....
> 
>       <%
>               String buttonStatus = (String)
> session.getAttribute("ButtonStatus");
>       %>
>       <html:submit property="action" value="Update"
> disabled="<%=buttonStatus%>" /> 
> 
> I've looked at the javadoc for the BaseHandler and the 
> setDisabled method is
> looking for a boolean value to be passed in.  It looks like 
> the tag is not
> converting the string to a boolean before trying to call the 
> setDisabled
> method.  Has anyone else come across this?  Or am I just flat doing
> something wrong?
> 
> TIA,
> 
> 
> Jerry Jalenak
> Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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

Reply via email to