2009年3月6日星期五

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

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.

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?

--

With warm regards,
Sudheer. S
Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net

没有评论: