cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunter D'Hondt <>
Subject woody checkboxes
Date Thu, 16 Sep 2004 09:14:52 GMT
if a html checkbox is not checked (or checked but disabled) then it's not 
send as a request parameter to the action of the form
Now as I currently see is that woody sees if the param is send; if sent 
then the boolean field value is set to true; else false. 
Problem now is that when you have a checkbox that is disabled but checked 
then the request param is not sent so woody cannot know about it; so 
instead of using this:

<input name="field" value="true" type="checkbox" checked="true" 
disabled="true" />

I use this

<input name="field" value="true" type="checkbox" checked="true" 
onclick="this.checked=!this.checked;" />
but with the disadvantage that the checkbox doesn't have the grey 
background anymore (IE coz NS doesn't even support the disabled attr)

Anybody who has a better idea?

Gunter D'Hondt
SOFICO NV Belgium 
View raw message