maybe you need to use custom tags.

sandeep

-----Original Message-----
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 4:07 PM
To: Struts Users Mailing List
Subject: RE: Setting html:text readonly attribute


At 16:09 03/05/2004, Paul McCulloch wrote:

>1) Use an html (rather than a jsp) tag:
>
>  <input type="text" name="licenceCount" value="<c:out
>value='${purchaseForm.licenceCount}'/>" size="3" readonly="<c:out
>value='${purchaseForm.newPurchase}'/>" maxlength="5"/>

I've found that this, unfortunately doesn't work, at least with my current 
browser of choice (Firefox), which insists on making the text field 
read-only as long as there is a 'readonly' attribute present. I'm exploring 
the other options next.

I have to say, completely off-topic, that it strikes me as pretty moronic 
behaviour for a browser if you have a boolean attribute, readonly, and it 
interprets "readonly='false'" as being an instruction to make the field 
read-only. But it does.

John


=============================================
John Moore     -    Norwich, UK    -    [EMAIL PROTECTED]
=============================================  

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

Reply via email to