2008年10月15日星期三

Re: [fw-mvc] Error Zend_Dojo CheckBox

Even with the release of version 1.6.2 the error still persists

Benjamín Gonzales
codigolinea.com

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 persists
>
> There 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.

没有评论: