ZF-5134: Create "Checked" validator for ZFE_Checkbox
Description
I discussed it with Matthew on IRC, we agreed that there is no clean way to validate that checkbox was checked. For example "required" flag has no meaning for this element, as it always have value due to its implementation in ZF.
Issue is related to ZF-5122.
Comments
Posted by Piotr Czachur (zimnyx) on 2009-04-10T04:05:03.000+0000
Thomas, it's your turn for the comment.
Posted by Thomas Weidner (thomas) on 2009-04-10T04:21:21.000+0000
No comment. But I can't just add a new component.
Each new component needs to have a proposal, and it needs a little bit of time until I finished it. I added 2 new filter proposals in the last days, but there are still about 5-10 open issues which have to be written as proposal.
As you may imagine, this is a lot of work. So please be patience until I finished all of them.
Note: I am no employee but do this in my sparetime. :-)
Posted by Bert Van Hauwaert (becoded) on 2009-04-17T00:57:10.000+0000
I don't think that there is need for a new validator. It seems to me that the following is a valid solution: http://framework.zend.com/issues/browse/ZF-5325 {quote}Checking for required on Zend_Form_Element_Checkbox using notEmpty does not make any sense, in my opinion. "Required" for a checkbox should be defined as the fact that the checkbox was checked; Not that the value is not empty.{quote}
Posted by Rob Allen (rob) on 2012-11-20T20:53:08.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.