In addition, it is not up to the coding standards (yet) as I am in the proces of learning those.
Also, I made a mess of the attached patches, because I am in the proces of learning how to create and supply patches.
If you manage to apply the patch, the checkbox will work properly.
Please apply it (read in the comments which one you need). Or better still, I will attach one to this mail that better complies to coding standards.
Please everybody test the patch in your projects and report any issues to me.
Regards,
Bart McLeod
Matthew Weier O'Phinney schreef:
-- Benjamin.Gonzales <iadvmc@yahoo.com> wrote (on Wednesday, 15 October 2008, 05:02 PM -0700):Even with the release of version 1.6.2 the error still persistsThat's because I was unable to fix it for 1.6.2; hopefully I can get to it in the next 1-2 weeks.Matthew Weier O'Phinney-3 wrote:-- Benjamin.Gonzales <iadvmc@yahoo.com> wrote (on Thursday, 09 October 2008, 05:51 PM -0700):I'm using ZF 1.6.1 And following error http://framework.zend.com/issues/browse/ZF-4274 Still persistsThere is an existing bug report for this issue; I hope to get to it "any time now".reference -------------------------------------- class TestController extends Zend_Controller_Action { function indexAction () { $this->view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); $form = new Zend_Dojo_Form(); $form->addElement( 'CheckBox', 'checkboxValue', array( 'label' => 'Label', 'checkedValue' => 'checkedValue', 'uncheckedValue' => 'notCheckedValue', ) ); $form->addDecorators(array('FormElements', 'Form')); $this->view->form = $form; } } This produces the following HTML: <input name="checkboxValue" value="0" type="hidden"><input id="checkboxValue" name="checkboxValue" value="notCheckedValue" type="checkbox"> The correct HTML should be: <input name="checkboxValue" value="notCheckedValue" type="hidden"><input id="checkboxValue" name="checkboxValue" value="checkedValue" type="checkbox"> -- View this message in context: http://www.nabble.com/Error-Zend_Dojo-CheckBox-tp19910115p19910115.html Sent from the Zend MVC mailing list archive at Nabble.com.-- Matthew Weier O'Phinney Software Architect | matthew@zend.com Zend Framework | http://framework.zend.com/-- View this message in context: http://www.nabble.com/Error-Zend_Dojo-CheckBox-tp19910115p20004752.html Sent from the Zend MVC mailing list archive at Nabble.com.
--
| Bart McLeod Space Web Internet Team Middenlaan 47 6865 VN Heveadorp The Netherlands t +31(0)26 3392952 m 06 51 51 89 71 @ info@spaceweb.nl www.spaceweb.nl | Bart McLeod is a Zend Certified Engineer. |
没有评论:
发表评论