The UiWidgetElement decorator is only for jQuery UI elements, not for other elements such as Zend_Form_Element_Select. You need to use the default Zend_Form_Decorator_ViewHelper for such elements.
On Friday 23 January 2009 15:42:35 Paweł Chuchmała wrote: > HI. > > I use ZF 1.7.0. > > If I try to create JQuery_Form, element select isn't properly > rendered. In JQUery_Form_Decorator_UiWidgetElement in method render > is: > > $elementContent = $view->$helper($name, $value, $jQueryParams, $attribs); > > where: > $attribs = $this->getElementAttribs(); > > so, helper for render FormSelect is called with paramters: > array > 0 => string 'name' (length=20) > 1 => string 'value' (length=2) > 2 => > array > empty /* our attribs*/ > 3 => > array > 'options' => > array > empty /* our empty values, or array if set */ > 'listsep' => string '<br />' (length=6) > 'id' => string 'name' (length=20) > > In html: > > <select name="name" id="name"> > <optgroup label="options"> > </optgroup> > <option value="listsep" label="<br />"><br /></option> > <option value="id" label="name">name</option> > </select> > > It's a bug, or I doing something wrong? > > regards, > pch -- Benjamin Eberlei http://www.beberlei.de