Is there a way to achieve that in one shot? My form is extends ZendX_JQuery_Form and I want to $this->setElementDecorators() but which one to set UiWidgetElement or ViewHelper? I don't want to set decorators for each element separately.
Regards, Saša Stamenković On Thu, Dec 3, 2009 at 10:21 AM, Benjamin Eberlei <[email protected]> wrote: > > The UiWidgetElement decorator is supposed to be used only with jQuery > elements, > wheras the "normal" decorator is for "normal" elements. > > On Wed, 2 Dec 2009 23:15:38 -0800 (PST), umpirsky <[email protected]> > wrote: > > Hi. > > > > I started using ZendX_JQuery_Form, and noted few things: > > > > 1. Replacing ViewHelper with UiWidgetElement produces Zend_Form_Element* > > not > > to render correctly. Then I added ugly patch in > > ZendX_JQuery_Form_Decorator_UiWidgetElement in render method > > (http://pastie.org/725073 line #13). > > I don't see why ZendX_JQuery_Form_Decorator_UiWidgetElement calls > > $elementContent = $view->$helper($name, $value, $jQueryParams, $attribs); > > > instead > > $elementContent = $view->$helper($name, $value, $attribs, > > $element->options); > > in this case it can have jQuery options in attribs use it and then just > > unset it - and we have a compatibility with Zend_Form_Element_*. Which is > a > > must, since jQuery UI don't have all element replacements(input, > checkbox, > > radio...) > > > > 2. Is there a support for factory methods - > ZendX_Jquery_Form::addElement() > > ? How do we add elements to ZendX_Jquery_Form? > > > > 3. I use > > > > http://www.filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/ > > and > > > > http://www.filamentgroup.com/lab/update_jquery_ui_slider_from_a_select_element_now_with_aria_support/ > > on my site, have already implemented selectmenu > (http://pastie.org/725079) > > it would be nice if someone can review. > > > > 4. I have sent my signed CLA a week ago via email, still no response. > Maybe > > I can contribute if there is someone from ZendX_JQuery authors to > discuss. > > > > Regards, > > Saša Stamenković. > >
