If you are using Struts 1.0 final release, it is a legal attribute you can
use to disable a checkbox,
but you need to do it like this:
=====================================================================
<html:text property="INSURED_FIRST_NAME" tabindex="3" disabled="true"
name="INSURED_FIRST_NAME" size="18" maxlength="40" value= ""
onfocus="document.INSURED.ada_INSURED_FIRST_NAME.value = '1';"/>
=====================================================================

Hope this helps

Jason Zhu
Software Developer
Emailto: [EMAIL PROTECTED]
============================================
Soprano Design - SMATER WAYS OF BEING MOBILE
============================================

-----Original Message-----
From: Albert Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: HTML:Text not outputing the html text property 'disabled'


Hi

I'm trying to output the following HTML using the HTML:Text tag.  The
purpose is to create an HTML Text box that's initally disabled:

<input maxlength="1" tabindex="4" disabled name="INSURED_INITIAL"
size="2" type="text" OnFocus="document.INSURED.ada_INSURED_INITIAL.value
= '1';" VALUE="">

I'm using the HTML:Text tag the following way:

<html:text property="INSURED_FIRST_NAME" tabindex="3" disabled
name="INSURED_FIRST_NAME" size="18" maxlength="40" value= ""
onfocus="document.INSURED.ada_INSURED_FIRST_NAME.value = '1';"/>

Since the "disabled" property is not a property of this tag, it's being
silently ignored.  How do I specify that the text box should be initally
disabled?

Thanks
Albert

Reply via email to