2008年12月5日星期五

[fw-mvc] Field description with dijit ComboBox

Hi to all,

how I can display the Description for a ComboBox (dijit) field? (ZF
1.7.0)

This is my code:

$this->addElement('ComboBox', 'test', array(
'label' => 'Test:',
'description' => 'Lorem ipsum dolor sit amet',
'required' => true,
'multiOptions' => array('alfa','bravo','charlie','delta')
));

And I've no description printed at all...

With this code:

$this->test->addDecorator('Description');

The description will be printed, but outside the <dd> tag

And with this code:

$this->test->setDecorators(array(
'ViewHelper',
'Description',
'Errors',
array('HtmlTag', array('tag' => 'dd')),
array('Label', array('tag' => 'dt'))
));

The description are printed inside the <dd> tags and all are fine, but
the ComboBox show NO OPTIONS at all...

Ther's a way to display correctly the description with a Dijit field?

Thanks for your help...

---
Emanuele Deserti
Netwing S.r.l.
<emanuele.deserti@netwing.it>
Tel. 0532-1915183
http://www.netwing.it

没有评论: