[Seaside] Disabled Checkboxes

Yar Hwee Boon hboon at motionobj.com
Mon Jul 11 13:19:21 CEST 2005


On 11-Jul-05, at PM 06:57, Avi Bryant wrote:

> So, I don't have any obvious solutions to propose to this problem.  
> Anyone have further ideas?

Since a checkbox doesn't actually send true/false to indicate its 
status (rather it sends the value specified to indicated its enabled 
and checked), one way would be to do some Javascript voodoo to, upon 
form submit,  always set each checkbox to enabled and change the value 
to say, "true"/"false"/"disabled" and modify 
#checkboxWithValue:callback: to check this value in the callback 
provided to #valueInputOfType:value:callback:. But it is probably not 
worth the added complexity and dependency (on JS).

--
HweeBoon
http://motionobj.com/blog/
MotionObj
(65) 6764-9774



More information about the Seaside mailing list