2009年3月9日星期一

Re: [fw-mvc] Zend_Dojo_Form_Element_FilteringSelect won't work in 1.7.6

Sudheer Satyanarayana wrote:
> Hi,
>
> As soon as I upgraded to 1.7.6, the
> Zend_Dojo_Form_Element_FilteringSelect elements stopped working. The
> widget is appearing on the page. But the data store is not attached to
> the widget. Thus, the data is empty on the field.
>
So, am I the only one affected?
> Did someone else encounter the same issue?
>
> Here's my code:
> Bootstrap:
> Zend_Dojo::enableView($view);
> $view->dojo()->setLocalPath($frontController->getBaseUrl() .
> '/js/dojo/dojo/dojo.js');
> $view->dojo()->addLayer('/js/dojo/custom/layer.js');
> $view->dojo()
> ->addStyleSheetModule('dijit.themes.tundra');
>
> Sample form element code:
> $branchId = new Zend_Dojo_Form_Element_FilteringSelect('branchId');
> $branchId->setLabel('Assign To Branch')
> ->setAutoComplete(true)
> ->setStoreId('branchStore')
> ->setStoreType('dojo.data.ItemFileReadStore')
> ->setStoreParams(array('url'=>'/lead/assigntobranch'))
> ->setAttrib("searchAttr", "branchName")
> ->setAttrib('displayedValue', $userBranch)
> ->setRequired(true);
>
> The data is available in the right format at '/lead/assigntobranch'.
>
> Layout:
> echo $this->dojo()->addStylesheetModule('dijit.themes.tundra');
> <body class="tundra">
>
> Other Zend_Dojo_Form elements are working well. Is any change required
> in client code in 1.7.6?
>

没有评论: