ZF-6741: Decorators and id attribute
Description
In the default element decorators, the id attribute is set for the wrapping dd tag
->addDecorator('HtmlTag', array('tag' => 'dd',
'id' => $this->getName() . '-element'))
getName() should be replaced by getId() because the name of an element is not always unique.
The same issue appears in the DtDdWrapper decorator where the element name is taken for the ids.
Comments
Posted by Christian Albrecht (alab) on 2010-04-20T11:28:51.000+0000
Simply replacing getName() with getId() has not the effect you wish it to have, because the Id gets assembled only when rendering within FormElements Decorator.
So i am suggesting this solution, please give me your opinions.
Posted by Christian Albrecht (alab) on 2010-04-20T11:43:34.000+0000
Fix For SubTask ZF-7663
Posted by Christian Albrecht (alab) on 2010-04-21T14:40:45.000+0000
Solution of first comment applied to trunk r21964, sheduling for next minor release.