2008年12月15日星期一

Re: [fw-mvc] Zend_Form rendering enhancement proposal

-- Emanuele Deserti <emanuele.deserti@netwing.it> wrote
(on Monday, 15 December 2008, 11:24 AM +0100):
> Great! It works perfectly! Many thanks...
>
> A little question: why the Description decorator isn't enabled by
> default for Dijit element like for standard element?
> There's a specific motivation or it is a "missing feature"?

Missing feature. :) I've added an issue to the tracker for this now:

http://framework.zend.com/issues/browse/ZF-5264


> Il giorno 12/dic/08, alle ore 18:31, Matthew Weier O'Phinney ha scritto:
>
>> -- Emanuele Deserti <emanuele.deserti@netwing.it> wrote
>> (on Friday, 12 December 2008, 05:24 PM +0100):
>>>> -- Emanuele Deserti <emanuele.deserti@netwing.it> wrote
>>>> (on Friday, 12 December 2008, 12:13 PM +0100):
>>> But I have another problem, as write before in another thread:
>>>
>>> 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',
>>
>>
>> Use 'DijitElement' instead of 'ViewHelper' here.
>>
>>
>>> '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...
>>
>> --
>> Matthew Weier O'Phinney
>> Software Architect | matthew@zend.com
>> Zend Framework | http://framework.zend.com/
>>
>
> ---
> Emanuele Deserti
> Netwing S.r.l.
> <emanuele.deserti@netwing.it>
> Tel. 0532-1915183
> http://www.netwing.it
>

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: