[Hippo-cms7-user] Re: Dropdown Plugin

Dennis Dam d.dam at onehippo.com
Mon Feb 22 08:33:24 CET 2010


Hi Enrico,

I haven't worked with the DynamicMultiSelect plugin yet, but I noticed that
you are still using the Dropdown Forge plugin, which was recently moved to
the "Selections" Forge plugin. The renaming was necessary because the plugin
now also includes other types of selection plugins, such as radiogroup and
multiselect. The latest version is 2.01.00. There is also better
documentation available for (amongst others) the DynamicMultiSelect plugin:
http://selection.forge.onehippo.org/configuration.html . So if you  can,
update your dependency to the selections plugin!

regards
Dennis

On Fri, Feb 19, 2010 at 5:42 PM, enrico <e.cervato at sourcesense.com> wrote:

>
> Hi everybody, what is the status of the plugin?
>
> I had no problems in having the 1.03.01 working in a StaticDropdown way,
> but
> I really cannot have it working like a DynamicMultiSelect. Here below the
> node definition in mynamespace.xml file
>
>        <sv:node sv:name="hipposysedit:field">
>           <sv:property sv:name="jcr:primaryType" sv:type="Name">
>             <sv:value>hipposysedit:field</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:mandatory" sv:type="Boolean">
>            <sv:value>false</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:multiple" sv:type="Boolean">
>            <sv:value>false</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:name" sv:type="String">
>            <sv:value>tags</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:ordered" sv:type="Boolean">
>            <sv:value>false</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:path" sv:type="String">
>            <sv:value>rijkshuisstijl:tags</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:primary" sv:type="Boolean">
>            <sv:value>false</sv:value>
>          </sv:property>
>          <sv:property sv:name="hipposysedit:type" sv:type="String">
>            <sv:value>DynamicMultiSelect</sv:value>
>          </sv:property>
>        </sv:node>
>
> Always in the same file in the templage section I have the following:
>
>        <sv:node sv:name="tags-template">
>           <sv:property sv:name="jcr:primaryType" sv:type="Name">
>            <sv:value>frontend:plugin</sv:value>
>          </sv:property>
>          <sv:property sv:name="caption" sv:type="String">
>             <sv:value>Tags</sv:value>
>           </sv:property>
>          <sv:property sv:name="engine" sv:type="String">
>            <sv:value>${engine}</sv:value>
>          </sv:property>
>          <sv:property sv:name="field" sv:type="String">
>             <sv:value>tags</sv:value>
>           </sv:property>
>          <sv:property sv:name="mode" sv:type="String">
>            <sv:value>${mode}</sv:value>
>          </sv:property>
>           <sv:property sv:name="wicket.id" sv:type="String">
>             <sv:value>${cluster.id}.field</sv:value>
>           </sv:property>
>          <sv:property sv:name="wicket.model" sv:type="String">
>            <sv:value>${wicket.model}</sv:value>
>          </sv:property>
>           <sv:property sv:name="plugin.class" sv:type="String">
>
>
> <sv:value>org.onehippo.forge.cms.frontend.plugin.DynamicMultiSelectPlugin</sv:value>
>          </sv:property>
>           <sv:property sv:name="multiselect.type" sv:type="String">
>            <sv:value>selectlist</sv:value>
>          </sv:property>
>           <sv:property sv:name="valuelist.provider" sv:type="String">
>            <sv:value>service.valuelist.default</sv:value>
>          </sv:property>
>          <sv:node sv:name="valuelist.options">
>            <sv:property sv:name="jcr:primaryType" sv:type="Name">
>              <sv:value>frontend:pluginconfig</sv:value>
>            </sv:property>
>            <sv:property sv:name="source" sv:type="String">
>
> <sv:value>/content/documents/rijkshuisstijl/tagslist</sv:value>
>             </sv:property>
>          </sv:node>
>        </sv:node>
>
> In the types.cnd file I added the following entry:
> - rijkshuisstijl:tags (string)
>
> And actually when opening a document in edit mode in the cms I can see the
> list of tags, but when opening the page I see the following error in the
> log
> file, symptom that something wrong is happening. And if I try and save the
> document that does not happen.
>
> 2010-02-19 17:40:53,451 [187247026 at qtp-339450463-0] ERROR
> org.hippoecm.frontend.plugin.impl.PluginFactory -
> java.lang.NullPointerException: null
> java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:71)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:248)
>        at
>
> org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
>        at
>
> org.hippoecm.frontend.editor.viewer.ViewerPlugin.createTemplate(ViewerPlugin.java:90)
>        at
>
> org.hippoecm.frontend.editor.viewer.ViewerPlugin.onModelChanged(ViewerPlugin.java:68)
>        at org.apache.wicket.Component.modelChanged(Component.java:2105)
>        at
>
> org.hippoecm.frontend.editor.viewer.ViewerPlugin.<init>(ViewerPlugin.java:57)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:71)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
>        at
>
> org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:248)
>        at
>
> org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
>        at
>
> org.hippoecm.frontend.plugins.cms.edit.AbstractCmsEditor.start(AbstractCmsEditor.java:252)
>        at
>
> org.hippoecm.frontend.plugins.cms.edit.HippostdPublishableEditor.start(HippostdPublishableEditor.java:78)
>        at
>
> org.hippoecm.frontend.plugins.cms.edit.EditorManagerPlugin.createEditor(EditorManagerPlugin.java:123)
>        at
>
> org.hippoecm.frontend.plugins.cms.edit.EditorManagerPlugin.openPreview(EditorManagerPlugin.java:109)
>        at
>
> org.hippoecm.frontend.plugins.cms.edit.BrowserObserver.onEvent(BrowserObserver.java:105)
>        at
>
> org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:76)
>        at
> org.hippoecm.frontend.model.ModelReference.setModel(ModelReference.java:77)
>        at
>
> org.hippoecm.frontend.plugins.standards.browse.BrowseService$DocumentModelService.updateModel(BrowseService.java:64)
>        at
>
> org.hippoecm.frontend.plugins.standards.browse.BrowseService.browse(BrowseService.java:134)
>        at
>
> org.hippoecm.frontend.plugins.standards.browse.BrowseService$DocumentModelService.setModel(BrowseService.java:72)
>        at
>
> org.hippoecm.frontend.plugins.standards.browse.BrowseService$DocumentModelService.setModel(BrowseService.java:56)
>        at
>
> org.hippoecm.frontend.plugins.standards.list.AbstractListingPlugin.selectionChanged(AbstractListingPlugin.java:149)
>        at
>
> org.hippoecm.frontend.plugins.standards.list.datatable.ListDataTable$4.onEvent(ListDataTable.java:201)
>        at
>
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163)
>        at
>
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
>        at
>
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
>        at
>
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
>        at
>
> org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:31)
>        at
>
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>        at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
>        at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>        at
>
> org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
>        at
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>        at
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>        at
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:326)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>        at
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>        at
>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>        at
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: java.lang.NullPointerException
>        at
>
> org.onehippo.forge.cms.frontend.plugin.DynamicMultiSelectPlugin$ListView.<init>(DynamicMultiSelectPlugin.java:278)
>        at
>
> org.onehippo.forge.cms.frontend.plugin.DynamicMultiSelectPlugin.<init>(DynamicMultiSelectPlugin.java:217)
>
> Any idea what I am doing wrong here? Sorry for the long email and thank you
> very much for your attention.
>
> Enrico
>
> --
> View this message in context:
> http://n2.nabble.com/Dropdown-Plugin-tp4014672p4598860.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html
>



-- 
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  info at onehippo.com
-----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onehippo.org/pipermail/hippo-cms7-user/attachments/20100222/0847b2ee/attachment.htm>


More information about the Hippo-cms7-user mailing list