ZF-12151: Zend_Dojo_Form_Element_ComboBox doesn't works with zend_dojo_dataStore


Zend_Dojo_Form_Element_ComboBox doesn't works with zend_dojo_dataStore. It looks like a textbox and doesn't call fetch method of datastore. If I comment out the variable $options or StoreType, the element is displayed as a empty combo.

Here's my code:

class Application_Form_Usuario extends Zend_Dojo_Form {
public function init()
{ $options = array('label'=>'Perfil:', 'storeId' => 'perfilStore', 'storeType' => '', 'storeParams' => array('url' => '/admin/usuario/gerar-json-perfil/sort/ds_perfil'),'dijitParams' => array('searchAttr' => 'ds_perfil'));
$element = new Zend_Dojo_Form_Element_ComboBox('id_perfil', $options); $this->addElement($element); } }

My json is working perfectly and returns the following data:

{"identifier":"id_perfil","items":[{"id_perfil":1,"ds_perfil":"ADMINISTRATOR","id_cliente":1,"id_uf":2,"bl_situacao":"1","dt_inclusao":"2012-03-21 14:51:07.790503","dt_alteracao":"2012-03-21 14:51:07.790503"}]}

Why does this happen? This is a bug?



No comments to display