ZF-6028: ZendX_JQuery_Form_Element_* fails when implemting using a custom view_handler

Issue Type: Bug Created: 2009-03-13T14:14:57.000+0000 Last Updated: 2009-06-11T01:57:58.000+0000 Status: Resolved Fix version(s): Reporter: Ruud Boon (ruudboon) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery

Related issues: Attachments:


I'm using smarty as view engine. When trying to use Jquery form i get exception like this :

Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'UiWidgetElement' was not found in the registry; used paths: ZendX_JQuery_Form_Decorator_: ZendX/JQuery/Form/Decorator/:ZendX/JQuery/Form/Decorator/:ZendX/JQuery/Form/Decorator/ Zend_Form_Decorator_: Zend/Form/Decorator/:Zend/Form/Decorator/' in /usr/local/share/ZendFramework/library/Zend/Loader/PluginLoader.php:390 Stack trace:

0 /usr/local/share/ZendFramework/library/Zend/Form/Element.php(1702): Zend_Loader_PluginLoader->load('UiWidgetElement')

1 /usr/local/share/ZendFramework/library/Zend/Form/Element.php(2061): Zend_Form_Element->_getDecorator('UiWidgetElement', NULL)

2 /usr/local/share/ZendFramework/library/Zend/Form/Element.php(1852): Zend_Form_Element->_loadDecorator(Array, 'UiWidgetElement')

3 /usr/local/share/ZendFramework/library/Zend/Form/Element.php(1908): Zend_Form_Element->getDecorators()

4 /usr/local/share/ZendFramework/library/Zend/Form/Decorator/FormElements.php(100): Zend_Form_Element->render()

5 /usr/ in /usr/local/share/ZendFramework/library/Zend/Loader/PluginLoader.php on line 390

Just a normal form works fine. I've implemting the form like this :

$oDate = new ZendX_JQuery_Form_Element_DatePicker( "datePicker1", array("label" => "Date Picker:") ); $oDate->setJQueryParam('dateFormat', ''); $oForm->addElement($oDate);

I've added ZendX_JQuery::enableForm($oForm);

IN the bootstrap i've added :

$oSmarty->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");

The file ZendX/JQuery/Form/Decorator/UiWidgetElement.php exists and is readable.


Posted by Ruud Boon (ruudboon) on 2009-03-19T06:54:54.000+0000

If you need any help, other example or info. Please let me know, because i can't create a workaround to solve this problem.

Posted by Benjamin Eberlei (beberlei) on 2009-04-22T20:56:28.000+0000

How do you include ZendX files for usage? how does your include path setup look like? I think this maybe an issue of wrongly configured include paths

Posted by Benjamin Eberlei (beberlei) on 2009-06-11T01:57:58.000+0000

Cannot reproduce the issue and no further feedback was provided. Re-open if necessary.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.