Dynamic Multiselect Dropdown

215 views
Skip to first unread message

Leandro Belluscio

unread,
Jun 2, 2016, 5:28:04 PM6/2/16
to Hippo Community
Hi Guys, 
I'm working with dynamic dropdown plugin, I created a CustomValueListProvider and cofigured it in cms/console it is works fine. But now I need a multiselection using a CustomValueListProvider, unfortunatly the DynamicDropdownMultiselect only supports items from a value list document, in fact there is no option in the document editor to add a dynamic dropdown multiselec. If I add a DynamicDropdown and check the "multiple" option I get this error


An error has occurred, sorry for that.

java.lang.IllegalStateException: org.onehippo.forge.selection.frontend.plugin.DynamicDropdownPlugin does not support fields that are multiple: please use org.onehippo.forge.selection.frontend.plugin.DynamicMultiSelectPlugin for that. Field name is *.
Failed to instantiate plugin class 'org.onehippo.forge.selection.frontend.plugin.DynamicDropdownPlugin' for wicket id 'home.cluster.cms-static.plugin.servicesLoader.cluster.cms-services.plugin.defaultEditorFactory.cluster.cms-editor.plugin.editorPlugin.cluster._default_.plugin.preview.cluster._default_.plugin.supplier-preview.cluster..plugin.home.cluster.cms-static.plugin.servicesLoader.cluster.cms-services.plugin.defaultEditorFactory.cluster.cms-editor.plugin.editorPlugin.cluster._default_.plugin.preview.cluster._default_.plugin.supplier.cluster._default_.service.wicket.id' in plugin 'home.cluster.cms-static.plugin.servicesLoader.cluster.cms-services.plugin.defaultEditorFactory.cluster.cms-editor.plugin.editorPlugin.cluster._default_.plugin.preview.cluster._default_.plugin.supplier-preview.cluster..plugin.home.cluster.cms-static.plugin.servicesLoader.cluster.cms-services.plugin.defaultEditorFactory.cluster.cms-editor.plugin.editorPlugin.cluster._default_.plugin.preview.cluster._default_.plugin.supplier.cluster._default_.plugin.root' (JcrPluginConfig:/hippo:namespaces/system/DynamicDropdown/editor:templates/_default_/root)


So there is a DynamicMultiSelec plugin, but it is not available in the document editor, I copy the DynamicaDropdown JCR node


Now the Plugin is available in the document editor



But it doesn't work, when hippo try to instantite it there is a class cast exception in FieldPluginHelper clas in method:

 public JcrNodeModel getNodeModel() {

        return (JcrNodeModel) getPluginContext().getService(getPluginConfig().getString("wicket.model"),

                IModelReference.class).getModel();

    }


the  getPluginContext().getService(getPluginConfig().getString("wicket.model"), IModelReference.class).getModel() returns a org.hippoecm.frontend.model.properties.JcrPropertyValueModel object and it is trying cast to JcrNodeModel


Is possible have a Mutltiselect dropdown available in document editor?


Thanks!



Ard Schrijvers

unread,
Jun 3, 2016, 4:01:52 AM6/3/16
to hippo-c...@googlegroups.com
Hey Leandro,

Great to hear you are building your own custom value list provider. Looking into your described problem requires a bit more investigation (and time). If you are a customer, we can best support you via a formal ticket and dedicate a Hippo developer to help out with your specific problem. If you are not a customer, you can also contact Hippo helpdesk / sales to see if/how you can get some formal support.

Hope this helps,

Regards Ard

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.



--
Hippo Netherlands, Oosteinde 11, 1017 WT Amsterdam, Netherlands
Hippo USA, Inc. 71 Summer Street, 2nd Floor Boston, MA 02110, United states of America.

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com
Reply all
Reply to author
Forward
0 new messages