Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Bart McLeod
I meant to write $form->removeElement('begin'); but that makes no difference to the result... Bart McLeod schreef: *testcode to reproduce error:* setView($view); $form->addElement(new ZendX_JQuery_Form_Element_DatePicker("begin", array('label' => 'begin', 'value' => '10-03-2008'))); echo $fo

Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Bart McLeod
*testcode to reproduce error:* setView($view); $form->addElement(new ZendX_JQuery_Form_Element_DatePicker("begin", array('label' => 'begin', 'value' => '10-03-2008'))); echo $form; $element = $form->getElement('begin'); $decorator = $element->getDecorator('UiWidgetElement'); $element->setDecor

Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Bart McLeod
Hello Benjamin, The problem is that I am NOT the one who is passing the NULL value. It is done internally, somewhere where I can't find it. Otherwise, it would have been very simple to solve. I have tried preserving the original decorator and re-adding it, but that does not work either. So i

Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Benjamin Eberlei
Hello Bart, the call signature for all jQuery helper mimics the dojo one: $this->helper($id, $value, array $params=array(), array $attribs=array()) if you want to pass no value leave the parameter entry or put array() in it. null leads to an error, this is desired behaviour. regarding NULL and

Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Bart McLeod
It seems to be by design, if explicit null values are passed in, the default value is of no use: As and addition, I noticed that when putting if(! is_array($attribs)){ var_dump($attribs); //exit(); } inside the function, is actually dumps NULL, while $at

Re: [fw-general] error in JQuery datepicker? -possible fix /bug in php?

2008-10-26 Thread Bart McLeod
As and addition, I noticed that when putting if(! is_array($attribs)){ var_dump($attribs); //exit(); } inside the function, is actually dumps NULL, while $attribs should be Array{}, because the default is array(). PHP 5.2.5 doesn't seem to assing the default