struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@apache.org>
Subject Re: Setting html:text readonly attribute
Date Mon, 03 May 2004 21:00:35 GMT
Riyad Kalla wrote:

>Whats the diff between readonly and "disabled=true", I've been using the 
>latter...
>
>  
>
In the terminology of the HTML Specification [1], a "disabled" control 
disallows user input *and* the field will not be "successful" on a form 
submit.  In other words, there will be no corresponding request 
parameter.  A "readonly" field [2] also disallows user input, but the 
request parameter for this field will still be returned (sort of a 
visible version of an <input type="hidden"> field).  There are also a 
few other minor differences that you can see in the spec language.

Craig

[1] http://www.w3.org/TR/html4/interact/forms.html#adef-disabled
[2] http://www.w3.org/TR/html4/interact/forms.html#adef-readonly


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message