Discussion:
[jifty-devel] Checkbox disabled
Stanislav Sinyagin
2009-09-07 20:21:32 UTC
Permalink
hi,

I think it's wrong thatrender_value() in Jifty::Web::Form::Field::Checkbox
draws a checkbox with both readonly and disabled. I also inherited this
behavior in Chekboxes.pm.

http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html

As a result a read-only checkbox does not send its value to the form, and the value is
lost upon submitting.

I think it has more sense to draw it in readonly, but not disabled mode.

your thoughts?
Jesse Vincent
2009-09-10 06:25:12 UTC
Permalink
Post by Stanislav Sinyagin
hi,
I think it's wrong thatrender_value() in Jifty::Web::Form::Field::Checkbox
draws a checkbox with both readonly and disabled. I also inherited this
behavior in Chekboxes.pm.
http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html
As a result a read-only checkbox does not send its value to the form, and the value is
lost upon submitting.
I think it has more sense to draw it in readonly, but not disabled mode.
your thoughts?
Hrm. If it's marked as read only and disabled, we should be submitting
back that we're _not_ going to send a value for that param. (or rather
"we shouldn't be submitting the metadata that we _will_ be sending a
value"

Continue reading on narkive:
Loading...