-- Chris MacPherson <[email protected]> wrote (on Thursday, 12 February 2009, 12:32 PM +0000): > I am creating a Dojo form which contains a Dojo subform. > > My main form looks like this: > > ... > $this->_form->setMethod('post') > ->addElement( > 'TextBox', > 'report_item_title', > array( > 'label' => 'Title', > 'required' => true > ) > ) > ->addElement( > 'Textarea', > 'report_item_description', > array( > 'label' => 'Description', > 'required' => false, > 'style' => 'width: 300px;', > ) > ); > > > // Add in subform > if (key_exists('subform', $args)) { > $this->_form->addSubform($args['subform'], 'ItemSubForm'); > } > ... > > and my subform looks like this: > > ... > $subForm = new Zend_Dojo_Form_SubForm('PieForm'); > > $subForm->addElement( > 'FilteringSelect', > 'data_column', > array( > 'label' => 'Data column', > 'Description' => 'Column in dataset to be used for Pie > data', > 'required' => true > ) > ); > ... > > There are no duplicated elements or ids here but when I run my code I get the > following notice: > > Notice: Duplicate dijit ID detected for id "data_column; temporarily > generating > uniqid" in C:\xampp\php\include\Zend\Dojo\Form\Decorator\DijitElement.php on > line 173 > > > Has anyone had a similar experience or is this a bug?
Are you adding the same subform multiple times, with the same name? That would cause the issue -- and trigger emission of that notice. -- Matthew Weier O'Phinney Software Architect | [email protected] Zend Framework | http://framework.zend.com/
