You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris <ch...@gmx.at> on 2015/04/26 02:08:52 UTC
Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function
Hi Sebastian,
I would like to render the container with the sortable items based on a Wicket event:
@Override
public void onEvent(IEvent<?> event) {
super.onEvent(event);
if (event.getPayload() instanceof AddItem) {
....
update.getTarget().add(container);
}
}
Thereby, I am getting following error. Has this something to do that some JS file has to be referenced in the panel instead of page?
Thanks a lot,
Chris
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: TypeError: undefined is not a function (evaluating 'jQuery('#sortable2c').sortable'), text: (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({ "update": function (event,ui) {
var attrs = {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
attrs.ep = params;
Wicket.Ajax.ajax(attrs);
}
, "handle": ".handle" });})();(function(){jQuery('#sortable2c').selectable({ "cancel": "span", "filter": "li", "stop": function () {
var indexes=[]; jQuery('.ui-selected', this).each( function() { indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs = {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
var params = {'indexes': indexes};
attrs.ep = params;
Wicket.Ajax.ajax(attrs);
}
});})();
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Do you use the latest -SNAPSHOT of wicket-jquery-ui ?
Do you use custom authorization strategy?
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, May 18, 2015 at 5:36 PM, Chris <ch...@gmx.at> wrote:
> When setting sortable.setEnabled(false), the drag&drop feature still works
> in my case, I am only getting an error "You do not have access to the page
> you requested.“ afterwards.
>
> Chris
>
>
> > Am 18.05.2015 um 16:27 schrieb Martin Grigorov <mg...@apache.org>:
> >
> > Override #onConfigure().
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> >
> >> Hi Martin,
> >>
> >> thanks!
> >> I am using the Sortable in a Panel and initialize it in the constructor.
> >> Where is the best place to set is as disabled when a certain page is
> >> loaded?
> >> if (getPage().getClass().equals(…) cannot be called in the constructor.
> >>
> >> Chris
> >>
> >>
> >>
> >>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
> >>>
> >>> Sortable.setEnabled(false)
> >>
> >>
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
When setting sortable.setEnabled(false), the drag&drop feature still works in my case, I am only getting an error "You do not have access to the page you requested.“ afterwards.
Chris
> Am 18.05.2015 um 16:27 schrieb Martin Grigorov <mg...@apache.org>:
>
> Override #onConfigure().
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>
>> Hi Martin,
>>
>> thanks!
>> I am using the Sortable in a Panel and initialize it in the constructor.
>> Where is the best place to set is as disabled when a certain page is
>> loaded?
>> if (getPage().getClass().equals(…) cannot be called in the constructor.
>>
>> Chris
>>
>>
>>
>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
>>>
>>> Sortable.setEnabled(false)
>>
>>
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
You should do something like:
@Override
public JQueryBehavior newWidgetBehavior(String selector) {
return new SortableBehavior(selector, someOptions) {
// ... same overrides as in Sortable.newWidgetBehavior(String)
@Override public boolean isEnabled(Component component) {
return yourLogicToDecideWhetherToDisableSortableBehavior();
}
}
}
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Jun 11, 2015 at 7:24 PM, Chris <ch...@gmx.at> wrote:
> Could you provide some more infos how to override the behavior and
> isEnabled method?
> Can I get the behavior from sortable.newWidgetBehavior?
> JQueryBehavior behavior = sortable.newWidgetBehavior(selector);
> thanks
> Chris
>
> > Am 11.06.2015 um 17:48 schrieb Martin Grigorov <mg...@apache.org>:
> >
> > IsEnabled(Component) is member of the behavior. This is the reason to
> > override newWidgetBehavior()
> > On Jun 11, 2015 6:31 PM, "Chris" <ch...@gmx.at> wrote:
> >
> >> Hi Martin,
> >>
> >> thanks!
> >> i have updated it as follows but still get the message „no access“ when
> >> clicking on the item.
> >> Is the code fragment correct?
> >> @Override
> >> public JQueryBehavior newWidgetBehavior(String selector) {
> >> return super.newWidgetBehavior(selector);
> >>
> >>
> >> }
> >>
> >> @Override
> >> public boolean isEnabled() {
> >> return false;
> >> }
> >>
> >>> Am 11.06.2015 um 17:16 schrieb Martin Grigorov <mg...@apache.org>:
> >>>
> >>> Hi,
> >>>
> >>> In this case you should leave the component enabled, override
> >>>
> >>
> com.googlecode.wicket.jquery.ui.interaction.sortable.Sortable#newWidgetBehavior(),
> >>> return SortableBehavior like the default one and override its
> >> #isEnabled()
> >>> method
> >>>
> >>> Martin Grigorov
> >>> Wicket Training and Consulting
> >>> https://twitter.com/mtgrigorov
> >>>
> >>> On Thu, Jun 11, 2015 at 6:05 PM, Chris <ch...@gmx.at> wrote:
> >>>
> >>>> Hi Sebastian,
> >>>>
> >>>> i set sortable.setEnabled(false);
> >>>> When I click on an item a new page opens with the error „You do not
> have
> >>>> access to the page you requested.“
> >>>>
> >>>> I would like to disable the drag & drop feature but still like to use
> >> the
> >>>> select feature.
> >>>>
> >>>> Thanks, Chris
> >>>>
> >>>> ********************************
> >>>> behavior not enabled; ignore call. Behavior
> >>>>
> >>
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> >>>> at component [Sortable [Component id = sortable]]
> >>>> ********************************
> >>>> Handling the following exception
> >>>>
> >>
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
> >>>> Behavior rejected interface invocation. Component: [Sortable
> [Component
> >> id
> >>>> = sortable]] Behavior:
> >>>>
> >>
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> >>>> Listener: [RequestListenerInterface name=IBehaviorListener,
> >> method=public
> >>>> abstract void
> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> >>>> at
> >>>>
> >>
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
> >>>> at
> >>>>
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
> >>>> at
> >>>>
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> >>>> at
> >>>>
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
> >>>> at
> >>>>
> >>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >>>> at
> >>>>
> >>
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> >>>> at
> >>>>
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> >>>> at
> >>>>
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> >>>> at
> >>>>
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> >>>> at
> >>>>
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >>>> at
> >>>>
> >>
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
> >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
> >>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>>> at
> >>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
> >>>> at
> >>>>
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
> >>>> at
> >>>>
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> >>>> at
> >>>>
> >>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
> >>>> at
> >>>>
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> >>>> at
> >>>>
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
> >>>> at
> >>>>
> >>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
> >>>> at
> >>>>
> >>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
> >>>> at
> >>>>
> >>
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
> >>>> at
> >>>>
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
> >>>> at
> >>>>
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
> >>>> at
> >>>>
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> >>>> at
> >>>>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >>>> at
> >>>>
> >>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> >>>> at java.lang.Thread.run(Thread.java:745)
> >>>> ********************************
> >>>>
> >>>>
> >>>>
> >>>>> Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
> >>>>>
> >>>>> Seems to work now with the updated version. Keep you updated.
> >>>>> Thanks for your support!
> >>>>>
> >>>>>
> >>>>>> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
> >>>>>>
> >>>>>> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
> >>>>>> meantime, you will probably encounter some runtime exceptions...
> >>>>>>
> >>>>>> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
> >>>>>>
> >>>>>>> But not Wicket core?
> >>>>>>>
> >>>>>>> Thanks a lot!
> >>>>>>>
> >>>>>>>
> >>>>>>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <
> >> mgrigorov@apache.org
> >>>>> :
> >>>>>>>>
> >>>>>>>> Yes.
> >>>>>>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and
> >>>> upgrade
> >>>>>>> to
> >>>>>>>> 6.19.2-SNAPSHOT.
> >>>>>>>>
> >>>>>>>> Martin Grigorov
> >>>>>>>> Wicket Training and Consulting
> >>>>>>>> https://twitter.com/mtgrigorov
> >>>>>>>>
> >>>>>>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
> >>>>>>>>
> >>>>>>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to
> >>>> upgrade?
> >>>>>>>>> When yes, can I upgrade only wicket-ui without wicket itself?
> >>>>>>>>> I am not using any authorization strategy.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
> >>>>>>>>>>
> >>>>>>>>>> Hi Chris,
> >>>>>>>>>>
> >>>>>>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> >>>>>>>>>> wicket-6.20.0-SNAPHOT)
> >>>>>>>>>> If you are based on 7, please let me know...
> >>>>>>>>>>
> >>>>>>>>>> Thanks to Martin for the update!
> >>>>>>>>>>
> >>>>>>>>>> Best regards,
> >>>>>>>>>> Sebastien.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <
> >>>> mgrigorov@apache.org
> >>>>>>>>
> >>>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Override #onConfigure().
> >>>>>>>>>>>
> >>>>>>>>>>> Martin Grigorov
> >>>>>>>>>>> Wicket Training and Consulting
> >>>>>>>>>>> https://twitter.com/mtgrigorov
> >>>>>>>>>>>
> >>>>>>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at>
> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> Hi Martin,
> >>>>>>>>>>>>
> >>>>>>>>>>>> thanks!
> >>>>>>>>>>>> I am using the Sortable in a Panel and initialize it in the
> >>>>>>>>> constructor.
> >>>>>>>>>>>> Where is the best place to set is as disabled when a certain
> >> page
> >>>> is
> >>>>>>>>>>>> loaded?
> >>>>>>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
> >>>>>>> constructor.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Chris
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
> >>>>>>> mgrigorov@apache.org
> >>>>>>>>>> :
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Sortable.setEnabled(false)
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> ---------------------------------------------------------------------
> >>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>
> >>>>
> >>
> >>
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
Could you provide some more infos how to override the behavior and isEnabled method?
Can I get the behavior from sortable.newWidgetBehavior?
JQueryBehavior behavior = sortable.newWidgetBehavior(selector);
thanks
Chris
> Am 11.06.2015 um 17:48 schrieb Martin Grigorov <mg...@apache.org>:
>
> IsEnabled(Component) is member of the behavior. This is the reason to
> override newWidgetBehavior()
> On Jun 11, 2015 6:31 PM, "Chris" <ch...@gmx.at> wrote:
>
>> Hi Martin,
>>
>> thanks!
>> i have updated it as follows but still get the message „no access“ when
>> clicking on the item.
>> Is the code fragment correct?
>> @Override
>> public JQueryBehavior newWidgetBehavior(String selector) {
>> return super.newWidgetBehavior(selector);
>>
>>
>> }
>>
>> @Override
>> public boolean isEnabled() {
>> return false;
>> }
>>
>>> Am 11.06.2015 um 17:16 schrieb Martin Grigorov <mg...@apache.org>:
>>>
>>> Hi,
>>>
>>> In this case you should leave the component enabled, override
>>>
>> com.googlecode.wicket.jquery.ui.interaction.sortable.Sortable#newWidgetBehavior(),
>>> return SortableBehavior like the default one and override its
>> #isEnabled()
>>> method
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Thu, Jun 11, 2015 at 6:05 PM, Chris <ch...@gmx.at> wrote:
>>>
>>>> Hi Sebastian,
>>>>
>>>> i set sortable.setEnabled(false);
>>>> When I click on an item a new page opens with the error „You do not have
>>>> access to the page you requested.“
>>>>
>>>> I would like to disable the drag & drop feature but still like to use
>> the
>>>> select feature.
>>>>
>>>> Thanks, Chris
>>>>
>>>> ********************************
>>>> behavior not enabled; ignore call. Behavior
>>>>
>> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
>>>> at component [Sortable [Component id = sortable]]
>>>> ********************************
>>>> Handling the following exception
>>>>
>> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
>>>> Behavior rejected interface invocation. Component: [Sortable [Component
>> id
>>>> = sortable]] Behavior:
>>>>
>> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
>>>> Listener: [RequestListenerInterface name=IBehaviorListener,
>> method=public
>>>> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>>>> at
>>>>
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
>>>> at
>>>>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
>>>> at
>>>>
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>>> at
>>>>
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
>>>> at
>>>>
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>>>> at
>>>>
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>>>> at
>>>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>>>> at
>>>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>>>> at
>>>>
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>>>> at
>>>>
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>>>> at
>>>>
>> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>>>> at
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>>>> at
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>> at
>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>> at
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>> at
>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>> at
>>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>>>> at
>>>>
>> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
>>>> at
>>>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
>>>> at
>>>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
>>>> at
>>>>
>> org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
>>>> at
>>>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
>>>> at
>>>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>>>> at
>>>>
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>>>> at
>>>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>>>> at
>>>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
>>>> at
>>>>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
>>>> at
>>>>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
>>>> at
>>>>
>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
>>>> at
>>>>
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
>>>> at
>>>>
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
>>>> at
>>>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>> at
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>> at
>>>>
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>> ********************************
>>>>
>>>>
>>>>
>>>>> Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
>>>>>
>>>>> Seems to work now with the updated version. Keep you updated.
>>>>> Thanks for your support!
>>>>>
>>>>>
>>>>>> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
>>>>>>
>>>>>> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
>>>>>> meantime, you will probably encounter some runtime exceptions...
>>>>>>
>>>>>> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
>>>>>>
>>>>>>> But not Wicket core?
>>>>>>>
>>>>>>> Thanks a lot!
>>>>>>>
>>>>>>>
>>>>>>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <
>> mgrigorov@apache.org
>>>>> :
>>>>>>>>
>>>>>>>> Yes.
>>>>>>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and
>>>> upgrade
>>>>>>> to
>>>>>>>> 6.19.2-SNAPSHOT.
>>>>>>>>
>>>>>>>> Martin Grigorov
>>>>>>>> Wicket Training and Consulting
>>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>>
>>>>>>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
>>>>>>>>
>>>>>>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to
>>>> upgrade?
>>>>>>>>> When yes, can I upgrade only wicket-ui without wicket itself?
>>>>>>>>> I am not using any authorization strategy.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>>>>>>>>>>
>>>>>>>>>> Hi Chris,
>>>>>>>>>>
>>>>>>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
>>>>>>>>>> wicket-6.20.0-SNAPHOT)
>>>>>>>>>> If you are based on 7, please let me know...
>>>>>>>>>>
>>>>>>>>>> Thanks to Martin for the update!
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Sebastien.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <
>>>> mgrigorov@apache.org
>>>>>>>>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Override #onConfigure().
>>>>>>>>>>>
>>>>>>>>>>> Martin Grigorov
>>>>>>>>>>> Wicket Training and Consulting
>>>>>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>>>>>
>>>>>>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Martin,
>>>>>>>>>>>>
>>>>>>>>>>>> thanks!
>>>>>>>>>>>> I am using the Sortable in a Panel and initialize it in the
>>>>>>>>> constructor.
>>>>>>>>>>>> Where is the best place to set is as disabled when a certain
>> page
>>>> is
>>>>>>>>>>>> loaded?
>>>>>>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
>>>>>>> constructor.
>>>>>>>>>>>>
>>>>>>>>>>>> Chris
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
>>>>>>> mgrigorov@apache.org
>>>>>>>>>> :
>>>>>>>>>>>>>
>>>>>>>>>>>>> Sortable.setEnabled(false)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>>
>>
>>
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
IsEnabled(Component) is member of the behavior. This is the reason to
override newWidgetBehavior()
On Jun 11, 2015 6:31 PM, "Chris" <ch...@gmx.at> wrote:
> Hi Martin,
>
> thanks!
> i have updated it as follows but still get the message „no access“ when
> clicking on the item.
> Is the code fragment correct?
> @Override
> public JQueryBehavior newWidgetBehavior(String selector) {
> return super.newWidgetBehavior(selector);
>
>
> }
>
> @Override
> public boolean isEnabled() {
> return false;
> }
>
> > Am 11.06.2015 um 17:16 schrieb Martin Grigorov <mg...@apache.org>:
> >
> > Hi,
> >
> > In this case you should leave the component enabled, override
> >
> com.googlecode.wicket.jquery.ui.interaction.sortable.Sortable#newWidgetBehavior(),
> > return SortableBehavior like the default one and override its
> #isEnabled()
> > method
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Thu, Jun 11, 2015 at 6:05 PM, Chris <ch...@gmx.at> wrote:
> >
> >> Hi Sebastian,
> >>
> >> i set sortable.setEnabled(false);
> >> When I click on an item a new page opens with the error „You do not have
> >> access to the page you requested.“
> >>
> >> I would like to disable the drag & drop feature but still like to use
> the
> >> select feature.
> >>
> >> Thanks, Chris
> >>
> >> ********************************
> >> behavior not enabled; ignore call. Behavior
> >>
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> >> at component [Sortable [Component id = sortable]]
> >> ********************************
> >> Handling the following exception
> >>
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
> >> Behavior rejected interface invocation. Component: [Sortable [Component
> id
> >> = sortable]] Behavior:
> >>
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> >> Listener: [RequestListenerInterface name=IBehaviorListener,
> method=public
> >> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> >> at
> >>
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
> >> at
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
> >> at
> >>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> >> at
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
> >> at
> >>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >> at
> >>
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> >> at
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> >> at
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> >> at
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> >> at
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >> at
> >>
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> at
> >> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> >> at
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> at
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
> >> at
> >>
> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
> >> at
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
> >> at
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
> >> at
> >>
> org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
> >> at
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
> >> at
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> >> at
> >>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
> >> at
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> >> at
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
> >> at
> >>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
> >> at
> >>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
> >> at
> >>
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
> >> at
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
> >> at
> >>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
> >> at
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> >> at
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> >> at
> >>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> >> at java.lang.Thread.run(Thread.java:745)
> >> ********************************
> >>
> >>
> >>
> >>> Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
> >>>
> >>> Seems to work now with the updated version. Keep you updated.
> >>> Thanks for your support!
> >>>
> >>>
> >>>> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
> >>>>
> >>>> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
> >>>> meantime, you will probably encounter some runtime exceptions...
> >>>>
> >>>> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
> >>>>
> >>>>> But not Wicket core?
> >>>>>
> >>>>> Thanks a lot!
> >>>>>
> >>>>>
> >>>>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <
> mgrigorov@apache.org
> >>> :
> >>>>>>
> >>>>>> Yes.
> >>>>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and
> >> upgrade
> >>>>> to
> >>>>>> 6.19.2-SNAPSHOT.
> >>>>>>
> >>>>>> Martin Grigorov
> >>>>>> Wicket Training and Consulting
> >>>>>> https://twitter.com/mtgrigorov
> >>>>>>
> >>>>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
> >>>>>>
> >>>>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to
> >> upgrade?
> >>>>>>> When yes, can I upgrade only wicket-ui without wicket itself?
> >>>>>>> I am not using any authorization strategy.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
> >>>>>>>>
> >>>>>>>> Hi Chris,
> >>>>>>>>
> >>>>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> >>>>>>>> wicket-6.20.0-SNAPHOT)
> >>>>>>>> If you are based on 7, please let me know...
> >>>>>>>>
> >>>>>>>> Thanks to Martin for the update!
> >>>>>>>>
> >>>>>>>> Best regards,
> >>>>>>>> Sebastien.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <
> >> mgrigorov@apache.org
> >>>>>>
> >>>>>>>> wrote:
> >>>>>>>>
> >>>>>>>>> Override #onConfigure().
> >>>>>>>>>
> >>>>>>>>> Martin Grigorov
> >>>>>>>>> Wicket Training and Consulting
> >>>>>>>>> https://twitter.com/mtgrigorov
> >>>>>>>>>
> >>>>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> >>>>>>>>>
> >>>>>>>>>> Hi Martin,
> >>>>>>>>>>
> >>>>>>>>>> thanks!
> >>>>>>>>>> I am using the Sortable in a Panel and initialize it in the
> >>>>>>> constructor.
> >>>>>>>>>> Where is the best place to set is as disabled when a certain
> page
> >> is
> >>>>>>>>>> loaded?
> >>>>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
> >>>>> constructor.
> >>>>>>>>>>
> >>>>>>>>>> Chris
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
> >>>>> mgrigorov@apache.org
> >>>>>>>> :
> >>>>>>>>>>>
> >>>>>>>>>>> Sortable.setEnabled(false)
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>>
> >>>>>
> >>>
> >>
> >>
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
Hi Martin,
thanks!
i have updated it as follows but still get the message „no access“ when clicking on the item.
Is the code fragment correct?
@Override
public JQueryBehavior newWidgetBehavior(String selector) {
return super.newWidgetBehavior(selector);
}
@Override
public boolean isEnabled() {
return false;
}
> Am 11.06.2015 um 17:16 schrieb Martin Grigorov <mg...@apache.org>:
>
> Hi,
>
> In this case you should leave the component enabled, override
> com.googlecode.wicket.jquery.ui.interaction.sortable.Sortable#newWidgetBehavior(),
> return SortableBehavior like the default one and override its #isEnabled()
> method
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Jun 11, 2015 at 6:05 PM, Chris <ch...@gmx.at> wrote:
>
>> Hi Sebastian,
>>
>> i set sortable.setEnabled(false);
>> When I click on an item a new page opens with the error „You do not have
>> access to the page you requested.“
>>
>> I would like to disable the drag & drop feature but still like to use the
>> select feature.
>>
>> Thanks, Chris
>>
>> ********************************
>> behavior not enabled; ignore call. Behavior
>> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
>> at component [Sortable [Component id = sortable]]
>> ********************************
>> Handling the following exception
>> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
>> Behavior rejected interface invocation. Component: [Sortable [Component id
>> = sortable]] Behavior:
>> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
>> Listener: [RequestListenerInterface name=IBehaviorListener, method=public
>> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>> at
>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
>> at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
>> at
>> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>> at
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
>> at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>> at
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
>> at
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>> at
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>> at
>> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>> at
>> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
>> at
>> org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>> at
>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
>> at
>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>> at java.lang.Thread.run(Thread.java:745)
>> ********************************
>>
>>
>>
>>> Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
>>>
>>> Seems to work now with the updated version. Keep you updated.
>>> Thanks for your support!
>>>
>>>
>>>> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
>>>>
>>>> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
>>>> meantime, you will probably encounter some runtime exceptions...
>>>>
>>>> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
>>>>
>>>>> But not Wicket core?
>>>>>
>>>>> Thanks a lot!
>>>>>
>>>>>
>>>>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mgrigorov@apache.org
>>> :
>>>>>>
>>>>>> Yes.
>>>>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and
>> upgrade
>>>>> to
>>>>>> 6.19.2-SNAPSHOT.
>>>>>>
>>>>>> Martin Grigorov
>>>>>> Wicket Training and Consulting
>>>>>> https://twitter.com/mtgrigorov
>>>>>>
>>>>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
>>>>>>
>>>>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to
>> upgrade?
>>>>>>> When yes, can I upgrade only wicket-ui without wicket itself?
>>>>>>> I am not using any authorization strategy.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>>>>>>>>
>>>>>>>> Hi Chris,
>>>>>>>>
>>>>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
>>>>>>>> wicket-6.20.0-SNAPHOT)
>>>>>>>> If you are based on 7, please let me know...
>>>>>>>>
>>>>>>>> Thanks to Martin for the update!
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Sebastien.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <
>> mgrigorov@apache.org
>>>>>>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Override #onConfigure().
>>>>>>>>>
>>>>>>>>> Martin Grigorov
>>>>>>>>> Wicket Training and Consulting
>>>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>>>
>>>>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Martin,
>>>>>>>>>>
>>>>>>>>>> thanks!
>>>>>>>>>> I am using the Sortable in a Panel and initialize it in the
>>>>>>> constructor.
>>>>>>>>>> Where is the best place to set is as disabled when a certain page
>> is
>>>>>>>>>> loaded?
>>>>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
>>>>> constructor.
>>>>>>>>>>
>>>>>>>>>> Chris
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
>>>>> mgrigorov@apache.org
>>>>>>>> :
>>>>>>>>>>>
>>>>>>>>>>> Sortable.setEnabled(false)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>
>>
>>
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
In this case you should leave the component enabled, override
com.googlecode.wicket.jquery.ui.interaction.sortable.Sortable#newWidgetBehavior(),
return SortableBehavior like the default one and override its #isEnabled()
method
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Jun 11, 2015 at 6:05 PM, Chris <ch...@gmx.at> wrote:
> Hi Sebastian,
>
> i set sortable.setEnabled(false);
> When I click on an item a new page opens with the error „You do not have
> access to the page you requested.“
>
> I would like to disable the drag & drop feature but still like to use the
> select feature.
>
> Thanks, Chris
>
> ********************************
> behavior not enabled; ignore call. Behavior
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> at component [Sortable [Component id = sortable]]
> ********************************
> Handling the following exception
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
> Behavior rejected interface invocation. Component: [Sortable [Component id
> = sortable]] Behavior:
> com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be
> Listener: [RequestListenerInterface name=IBehaviorListener, method=public
> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> at
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
> at
> org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
> at
> org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> ********************************
>
>
>
> > Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
> >
> > Seems to work now with the updated version. Keep you updated.
> > Thanks for your support!
> >
> >
> >> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
> >>
> >> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
> >> meantime, you will probably encounter some runtime exceptions...
> >>
> >> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
> >>
> >>> But not Wicket core?
> >>>
> >>> Thanks a lot!
> >>>
> >>>
> >>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mgrigorov@apache.org
> >:
> >>>>
> >>>> Yes.
> >>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and
> upgrade
> >>> to
> >>>> 6.19.2-SNAPSHOT.
> >>>>
> >>>> Martin Grigorov
> >>>> Wicket Training and Consulting
> >>>> https://twitter.com/mtgrigorov
> >>>>
> >>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
> >>>>
> >>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to
> upgrade?
> >>>>> When yes, can I upgrade only wicket-ui without wicket itself?
> >>>>> I am not using any authorization strategy.
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
> >>>>>>
> >>>>>> Hi Chris,
> >>>>>>
> >>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> >>>>>> wicket-6.20.0-SNAPHOT)
> >>>>>> If you are based on 7, please let me know...
> >>>>>>
> >>>>>> Thanks to Martin for the update!
> >>>>>>
> >>>>>> Best regards,
> >>>>>> Sebastien.
> >>>>>>
> >>>>>>
> >>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <
> mgrigorov@apache.org
> >>>>
> >>>>>> wrote:
> >>>>>>
> >>>>>>> Override #onConfigure().
> >>>>>>>
> >>>>>>> Martin Grigorov
> >>>>>>> Wicket Training and Consulting
> >>>>>>> https://twitter.com/mtgrigorov
> >>>>>>>
> >>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> >>>>>>>
> >>>>>>>> Hi Martin,
> >>>>>>>>
> >>>>>>>> thanks!
> >>>>>>>> I am using the Sortable in a Panel and initialize it in the
> >>>>> constructor.
> >>>>>>>> Where is the best place to set is as disabled when a certain page
> is
> >>>>>>>> loaded?
> >>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
> >>> constructor.
> >>>>>>>>
> >>>>>>>> Chris
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
> >>> mgrigorov@apache.org
> >>>>>> :
> >>>>>>>>>
> >>>>>>>>> Sortable.setEnabled(false)
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>
> >>>>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
Hi Sebastian,
i set sortable.setEnabled(false);
When I click on an item a new page opens with the error „You do not have access to the page you requested.“
I would like to disable the drag & drop feature but still like to use the select feature.
Thanks, Chris
********************************
behavior not enabled; ignore call. Behavior com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be at component [Sortable [Component id = sortable]]
********************************
Handling the following exception
org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: Behavior rejected interface invocation. Component: [Sortable [Component id = sortable]] Behavior: com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableBehavior$1@3ef883be Listener: [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
********************************
> Am 18.05.2015 um 17:04 schrieb Chris <ch...@gmx.at>:
>
> Seems to work now with the updated version. Keep you updated.
> Thanks for your support!
>
>
>> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
>>
>> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
>> meantime, you will probably encounter some runtime exceptions...
>>
>> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
>>
>>> But not Wicket core?
>>>
>>> Thanks a lot!
>>>
>>>
>>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mg...@apache.org>:
>>>>
>>>> Yes.
>>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and upgrade
>>> to
>>>> 6.19.2-SNAPSHOT.
>>>>
>>>> Martin Grigorov
>>>> Wicket Training and Consulting
>>>> https://twitter.com/mtgrigorov
>>>>
>>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
>>>>
>>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade?
>>>>> When yes, can I upgrade only wicket-ui without wicket itself?
>>>>> I am not using any authorization strategy.
>>>>>
>>>>>
>>>>>
>>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>>>>>>
>>>>>> Hi Chris,
>>>>>>
>>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
>>>>>> wicket-6.20.0-SNAPHOT)
>>>>>> If you are based on 7, please let me know...
>>>>>>
>>>>>> Thanks to Martin for the update!
>>>>>>
>>>>>> Best regards,
>>>>>> Sebastien.
>>>>>>
>>>>>>
>>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mgrigorov@apache.org
>>>>
>>>>>> wrote:
>>>>>>
>>>>>>> Override #onConfigure().
>>>>>>>
>>>>>>> Martin Grigorov
>>>>>>> Wicket Training and Consulting
>>>>>>> https://twitter.com/mtgrigorov
>>>>>>>
>>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>>>>>>
>>>>>>>> Hi Martin,
>>>>>>>>
>>>>>>>> thanks!
>>>>>>>> I am using the Sortable in a Panel and initialize it in the
>>>>> constructor.
>>>>>>>> Where is the best place to set is as disabled when a certain page is
>>>>>>>> loaded?
>>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
>>> constructor.
>>>>>>>>
>>>>>>>> Chris
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
>>> mgrigorov@apache.org
>>>>>> :
>>>>>>>>>
>>>>>>>>> Sortable.setEnabled(false)
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
Seems to work now with the updated version. Keep you updated.
Thanks for your support!
> Am 18.05.2015 um 16:54 schrieb Sebastien <se...@gmail.com>:
>
> Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
> meantime, you will probably encounter some runtime exceptions...
>
> On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
>
>> But not Wicket core?
>>
>> Thanks a lot!
>>
>>
>>> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mg...@apache.org>:
>>>
>>> Yes.
>>> You need to add Sonatype OSS Snapshots repo to your pom.xml and upgrade
>> to
>>> 6.19.2-SNAPSHOT.
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
>>>
>>>> I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade?
>>>> When yes, can I upgrade only wicket-ui without wicket itself?
>>>> I am not using any authorization strategy.
>>>>
>>>>
>>>>
>>>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>>>>>
>>>>> Hi Chris,
>>>>>
>>>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
>>>>> wicket-6.20.0-SNAPHOT)
>>>>> If you are based on 7, please let me know...
>>>>>
>>>>> Thanks to Martin for the update!
>>>>>
>>>>> Best regards,
>>>>> Sebastien.
>>>>>
>>>>>
>>>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mgrigorov@apache.org
>>>
>>>>> wrote:
>>>>>
>>>>>> Override #onConfigure().
>>>>>>
>>>>>> Martin Grigorov
>>>>>> Wicket Training and Consulting
>>>>>> https://twitter.com/mtgrigorov
>>>>>>
>>>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>>>>>
>>>>>>> Hi Martin,
>>>>>>>
>>>>>>> thanks!
>>>>>>> I am using the Sortable in a Panel and initialize it in the
>>>> constructor.
>>>>>>> Where is the best place to set is as disabled when a certain page is
>>>>>>> loaded?
>>>>>>> if (getPage().getClass().equals(…) cannot be called in the
>> constructor.
>>>>>>>
>>>>>>> Chris
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
>> mgrigorov@apache.org
>>>>> :
>>>>>>>>
>>>>>>>> Sortable.setEnabled(false)
>>>>>>>
>>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable
Posted by Sebastien <se...@gmail.com>.
Yes too. If you are not upgrading to wicket 6.20.0-SNAPSHOT in the
meantime, you will probably encounter some runtime exceptions...
On Mon, May 18, 2015 at 4:53 PM, Chris <ch...@gmx.at> wrote:
> But not Wicket core?
>
> Thanks a lot!
>
>
> > Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mg...@apache.org>:
> >
> > Yes.
> > You need to add Sonatype OSS Snapshots repo to your pom.xml and upgrade
> to
> > 6.19.2-SNAPSHOT.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
> >
> >> I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade?
> >> When yes, can I upgrade only wicket-ui without wicket itself?
> >> I am not using any authorization strategy.
> >>
> >>
> >>
> >>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
> >>>
> >>> Hi Chris,
> >>>
> >>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> >>> wicket-6.20.0-SNAPHOT)
> >>> If you are based on 7, please let me know...
> >>>
> >>> Thanks to Martin for the update!
> >>>
> >>> Best regards,
> >>> Sebastien.
> >>>
> >>>
> >>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mgrigorov@apache.org
> >
> >>> wrote:
> >>>
> >>>> Override #onConfigure().
> >>>>
> >>>> Martin Grigorov
> >>>> Wicket Training and Consulting
> >>>> https://twitter.com/mtgrigorov
> >>>>
> >>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> >>>>
> >>>>> Hi Martin,
> >>>>>
> >>>>> thanks!
> >>>>> I am using the Sortable in a Panel and initialize it in the
> >> constructor.
> >>>>> Where is the best place to set is as disabled when a certain page is
> >>>>> loaded?
> >>>>> if (getPage().getClass().equals(…) cannot be called in the
> constructor.
> >>>>>
> >>>>> Chris
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <
> mgrigorov@apache.org
> >>> :
> >>>>>>
> >>>>>> Sortable.setEnabled(false)
> >>>>>
> >>>>>
> >>>>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
But not Wicket core?
Thanks a lot!
> Am 18.05.2015 um 16:48 schrieb Martin Grigorov <mg...@apache.org>:
>
> Yes.
> You need to add Sonatype OSS Snapshots repo to your pom.xml and upgrade to
> 6.19.2-SNAPSHOT.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
>
>> I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade?
>> When yes, can I upgrade only wicket-ui without wicket itself?
>> I am not using any authorization strategy.
>>
>>
>>
>>> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>>>
>>> Hi Chris,
>>>
>>> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
>>> wicket-6.20.0-SNAPHOT)
>>> If you are based on 7, please let me know...
>>>
>>> Thanks to Martin for the update!
>>>
>>> Best regards,
>>> Sebastien.
>>>
>>>
>>> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mg...@apache.org>
>>> wrote:
>>>
>>>> Override #onConfigure().
>>>>
>>>> Martin Grigorov
>>>> Wicket Training and Consulting
>>>> https://twitter.com/mtgrigorov
>>>>
>>>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>>>
>>>>> Hi Martin,
>>>>>
>>>>> thanks!
>>>>> I am using the Sortable in a Panel and initialize it in the
>> constructor.
>>>>> Where is the best place to set is as disabled when a certain page is
>>>>> loaded?
>>>>> if (getPage().getClass().equals(…) cannot be called in the constructor.
>>>>>
>>>>> Chris
>>>>>
>>>>>
>>>>>
>>>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mgrigorov@apache.org
>>> :
>>>>>>
>>>>>> Sortable.setEnabled(false)
>>>>>
>>>>>
>>>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Yes.
You need to add Sonatype OSS Snapshots repo to your pom.xml and upgrade to
6.19.2-SNAPSHOT.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, May 18, 2015 at 5:45 PM, Chris <ch...@gmx.at> wrote:
> I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade?
> When yes, can I upgrade only wicket-ui without wicket itself?
> I am not using any authorization strategy.
>
>
>
> > Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
> >
> > Hi Chris,
> >
> > I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> > wicket-6.20.0-SNAPHOT)
> > If you are based on 7, please let me know...
> >
> > Thanks to Martin for the update!
> >
> > Best regards,
> > Sebastien.
> >
> >
> > On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> >> Override #onConfigure().
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >> https://twitter.com/mtgrigorov
> >>
> >> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> >>
> >>> Hi Martin,
> >>>
> >>> thanks!
> >>> I am using the Sortable in a Panel and initialize it in the
> constructor.
> >>> Where is the best place to set is as disabled when a certain page is
> >>> loaded?
> >>> if (getPage().getClass().equals(…) cannot be called in the constructor.
> >>>
> >>> Chris
> >>>
> >>>
> >>>
> >>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mgrigorov@apache.org
> >:
> >>>>
> >>>> Sortable.setEnabled(false)
> >>>
> >>>
> >>
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
I am using version 6.17.0. Do I need to upgrade? Do I need to upgrade? When yes, can I upgrade only wicket-ui without wicket itself?
I am not using any authorization strategy.
> Am 18.05.2015 um 16:37 schrieb Sebastien <se...@gmail.com>:
>
> Hi Chris,
>
> I just deployed 6.19.2-SNAPSHOT (warning, it is based on
> wicket-6.20.0-SNAPHOT)
> If you are based on 7, please let me know...
>
> Thanks to Martin for the update!
>
> Best regards,
> Sebastien.
>
>
> On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
>> Override #onConfigure().
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>>
>>> Hi Martin,
>>>
>>> thanks!
>>> I am using the Sortable in a Panel and initialize it in the constructor.
>>> Where is the best place to set is as disabled when a certain page is
>>> loaded?
>>> if (getPage().getClass().equals(…) cannot be called in the constructor.
>>>
>>> Chris
>>>
>>>
>>>
>>>> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
>>>>
>>>> Sortable.setEnabled(false)
>>>
>>>
>>
Re: Sortable
Posted by Sebastien <se...@gmail.com>.
Hi Chris,
I just deployed 6.19.2-SNAPSHOT (warning, it is based on
wicket-6.20.0-SNAPHOT)
If you are based on 7, please let me know...
Thanks to Martin for the update!
Best regards,
Sebastien.
On Mon, May 18, 2015 at 4:27 PM, Martin Grigorov <mg...@apache.org>
wrote:
> Override #onConfigure().
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
>
> > Hi Martin,
> >
> > thanks!
> > I am using the Sortable in a Panel and initialize it in the constructor.
> > Where is the best place to set is as disabled when a certain page is
> > loaded?
> > if (getPage().getClass().equals(…) cannot be called in the constructor.
> >
> > Chris
> >
> >
> >
> > > Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
> > >
> > > Sortable.setEnabled(false)
> >
> >
>
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Override #onConfigure().
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, May 18, 2015 at 5:25 PM, Chris <ch...@gmx.at> wrote:
> Hi Martin,
>
> thanks!
> I am using the Sortable in a Panel and initialize it in the constructor.
> Where is the best place to set is as disabled when a certain page is
> loaded?
> if (getPage().getClass().equals(…) cannot be called in the constructor.
>
> Chris
>
>
>
> > Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
> >
> > Sortable.setEnabled(false)
>
>
Re: Sortable
Posted by Chris <ch...@gmx.at>.
Hi Martin,
thanks!
I am using the Sortable in a Panel and initialize it in the constructor.
Where is the best place to set is as disabled when a certain page is loaded?
if (getPage().getClass().equals(…) cannot be called in the constructor.
Chris
> Am 18.05.2015 um 16:01 schrieb Martin Grigorov <mg...@apache.org>:
>
> Sortable.setEnabled(false)
Re: Sortable
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
https://github.com/sebfz1/wicket-jquery-ui/pull/169 has been merged earlier
today.
Sortable.setEnabled(false)
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, May 18, 2015 at 4:32 PM, Chris <ch...@gmx.at> wrote:
> Hi Sebastian,
>
> is there an easy way to deactivate the sortable function when having a
> sortable?
> I do not want to remove the element or replace it through another one,
> just to deactivate the function on a certain page where it is used.
>
> sortable = new Sortable<String>("sortable", sortableModel,
> new Options("handle", Options.asString(".handle"))) {…}
> ….
>
>
> Thanks a lot,
> Chris
Sortable
Posted by Chris <ch...@gmx.at>.
Hi Sebastian,
is there an easy way to deactivate the sortable function when having a sortable?
I do not want to remove the element or replace it through another one, just to deactivate the function on a certain page where it is used.
sortable = new Sortable<String>("sortable", sortableModel,
new Options("handle", Options.asString(".handle"))) {…}
….
Thanks a lot,
Chris
Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function
Posted by Chris <ch...@gmx.at>.
Sebastian, thank you for your answer!
Chris
> Am 26.04.2015 um 20:38 schrieb Sebastien <se...@gmail.com>:
>
> Hi Chris,
>
> Yes wicket includes it on demand (when it need it, like with wicket
> events).
> If you need to add a custom javascript, I recommend you to do it through a
> JQueryPluginResourceReference, so underlying jquery library will be
> automatically loaded when you use it...
>
> For instance, in #renderHead:
> ResourceReference reference = new
> JQueryPluginResourceReference(MyComponent.class, "myjavascript.js");
> response.render(JavaScriptHeaderItem.forReference(reference));
>
> Best regards,
> Sebastien.
>
>
> On Sun, Apr 26, 2015 at 8:13 PM, Chris <ch...@gmx.at> wrote:
>
>> Hi Sebastian,
>>
>> I just did this - but nevertheless, if I do not include the same version
>> in wicket:head, $(function () is not called in html head.
>> Does Wicket include it only for internal purposes, but not automatically
>> for JS placed in HTML?
>>
>> Thanks, Chris
>>
>>
>>
>>
>>> Am 26.04.2015 um 19:33 schrieb Sebastien <se...@gmail.com>:
>>>
>>> Hi Chris,
>>>
>>> You cannot have 2 concurrent versions of jquery...
>>>
>>> If you need to upgrade jquery version, please use:
>>> this.getJavaScriptLibrarySettings().setJQueryReference(jQueryReference) -
>>> in MyApplication#init()
>>>
>>> Hope this helps,
>>> Sebastien
>>>
>>>
>>> On Sun, Apr 26, 2015 at 7:14 PM, Chris <ch...@gmx.at> wrote:
>>>
>>>> Hi Sebastian,
>>>>
>>>> thanks for your help.
>>>>
>>>> the reason for this error seems that I load jquery-1.11.2.min.js in
>> wicket
>>>> head next to jQuery-1.11.1 which is already loaded via wicket.
>>>>
>>>> However, when I restrain from loading jquery-1.11.2.min.js in wicket
>> head
>>>> , the javascript $(function () {…} is not called although jQuery-1.11.1
>>>> seems to be loaded (via wicket).
>>>>
>>>> Why does this happen?
>>>>
>>>> Thanks Chris
>>>>
>>>>
>>>>> Am 26.04.2015 um 18:02 schrieb Sebastien <se...@gmail.com>:
>>>>>
>>>>> Hi Chris,
>>>>>
>>>>> AFAIS, the only thing that I think it could typically cause an issue is
>>>>> "calcHeight()". But the error message is misleading, I would have
>> expect
>>>> a
>>>>> "calcHeight is undefined" instead, so I am not really sure...
>>>> Furthermore,
>>>>> I don't know how/where you have included the "calcHeight" function. If
>>>> the
>>>>> scope is window then try window.calcHeight();
>>>>>
>>>>> If it does not solve the issue or you suspect it comes from elsewhere
>>>>> please create a minimal quickstart that reproduce the issue and I will
>>>> have
>>>>> a look...
>>>>>
>>>>> Thanks & best regards,
>>>>> Sebastien.
>>>>>
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
>>>>>
>>>>> (function(){ calcHeight();})();
>>>>>
>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
>>>>>
>>>>> (function(){
>>>>> jQuery('#sortable2c').sortable({
>>>>> "update": function (event,ui) {
>>>>>
>>>>> var attrs =
>>>>>
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
>>>>> var params = {'hash': ui.item.data('hash'),'index':
>>>>> ui.item.index()};
>>>>> attrs.ep = params;
>>>>> Wicket.Ajax.ajax(attrs);
>>>>> }
>>>>> , "handle": ".handle" });
>>>>> })();
>>>>>
>>>>> (function(){
>>>>> jQuery('#sortable2c').selectable({
>>>>> "cancel": "span", "filter": "li", "stop": function () {
>>>>>
>>>>> var indexes=[]; jQuery('.ui-selected', this).each( function()
>>>> {
>>>>> indexes.push(jQuery('#sortable2c li').index(this)); } );
>>>>> var attrs =
>>>>>
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
>>>>> var params = {'indexes': indexes};
>>>>> attrs.ep = params;
>>>>> Wicket.Ajax.ajax(attrs);
>>>>> }
>>>>> });
>>>>>
>>>>> })();
>>>>>
>>>>> On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
>>>>>
>>>>>> Hi Sebastian,
>>>>>>
>>>>>> I would like to render the container with the sortable items based on
>> a
>>>>>> Wicket event:
>>>>>>
>>>>>> @Override
>>>>>> public void onEvent(IEvent<?> event) {
>>>>>> super.onEvent(event);
>>>>>>
>>>>>> if (event.getPayload() instanceof AddItem) {
>>>>>> ....
>>>>>> update.getTarget().add(container);
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> Thereby, I am getting following error. Has this something to do that
>>>> some
>>>>>> JS file has to be referenced in the panel instead of page?
>>>>>>
>>>>>> Thanks a lot,
>>>>>> Chris
>>>>>>
>>>>>> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
>>>>>> javascript: TypeError: undefined is not a function (evaluating
>>>>>> 'jQuery('#sortable2c').sortable'), text:
>>>>>>
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
>>>>>> "update": function (event,ui) {
>>>>>> var attrs =
>>>>>>
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
>>>>>> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
>>>>>> attrs.ep = params;
>>>>>> Wicket.Ajax.ajax(attrs);
>>>>>> }
>>>>>> , "handle": ".handle"
>>>>>> });})();(function(){jQuery('#sortable2c').selectable({ "cancel":
>> "span",
>>>>>> "filter": "li", "stop": function () {
>>>>>> var indexes=[]; jQuery('.ui-selected', this).each( function() {
>>>>>> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
>>>>>>
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
>>>>>> var params = {'indexes': indexes};
>>>>>> attrs.ep = params;
>>>>>> Wicket.Ajax.ajax(attrs);
>>>>>> }
>>>>>> });})();
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable, with Selectable; Exception evaluating javascript:
TypeError: undefined is not a function
Posted by Sebastien <se...@gmail.com>.
Hi Chris,
Yes wicket includes it on demand (when it need it, like with wicket
events).
If you need to add a custom javascript, I recommend you to do it through a
JQueryPluginResourceReference, so underlying jquery library will be
automatically loaded when you use it...
For instance, in #renderHead:
ResourceReference reference = new
JQueryPluginResourceReference(MyComponent.class, "myjavascript.js");
response.render(JavaScriptHeaderItem.forReference(reference));
Best regards,
Sebastien.
On Sun, Apr 26, 2015 at 8:13 PM, Chris <ch...@gmx.at> wrote:
> Hi Sebastian,
>
> I just did this - but nevertheless, if I do not include the same version
> in wicket:head, $(function () is not called in html head.
> Does Wicket include it only for internal purposes, but not automatically
> for JS placed in HTML?
>
> Thanks, Chris
>
>
>
>
> > Am 26.04.2015 um 19:33 schrieb Sebastien <se...@gmail.com>:
> >
> > Hi Chris,
> >
> > You cannot have 2 concurrent versions of jquery...
> >
> > If you need to upgrade jquery version, please use:
> > this.getJavaScriptLibrarySettings().setJQueryReference(jQueryReference) -
> > in MyApplication#init()
> >
> > Hope this helps,
> > Sebastien
> >
> >
> > On Sun, Apr 26, 2015 at 7:14 PM, Chris <ch...@gmx.at> wrote:
> >
> >> Hi Sebastian,
> >>
> >> thanks for your help.
> >>
> >> the reason for this error seems that I load jquery-1.11.2.min.js in
> wicket
> >> head next to jQuery-1.11.1 which is already loaded via wicket.
> >>
> >> However, when I restrain from loading jquery-1.11.2.min.js in wicket
> head
> >> , the javascript $(function () {…} is not called although jQuery-1.11.1
> >> seems to be loaded (via wicket).
> >>
> >> Why does this happen?
> >>
> >> Thanks Chris
> >>
> >>
> >>> Am 26.04.2015 um 18:02 schrieb Sebastien <se...@gmail.com>:
> >>>
> >>> Hi Chris,
> >>>
> >>> AFAIS, the only thing that I think it could typically cause an issue is
> >>> "calcHeight()". But the error message is misleading, I would have
> expect
> >> a
> >>> "calcHeight is undefined" instead, so I am not really sure...
> >> Furthermore,
> >>> I don't know how/where you have included the "calcHeight" function. If
> >> the
> >>> scope is window then try window.calcHeight();
> >>>
> >>> If it does not solve the issue or you suspect it comes from elsewhere
> >>> please create a minimal quickstart that reproduce the issue and I will
> >> have
> >>> a look...
> >>>
> >>> Thanks & best regards,
> >>> Sebastien.
> >>>
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
> >>>
> >>> (function(){ calcHeight();})();
> >>>
> >>>
> >>
> (function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
> >>>
> >>> (function(){
> >>> jQuery('#sortable2c').sortable({
> >>> "update": function (event,ui) {
> >>>
> >>> var attrs =
> >>>
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> >>> var params = {'hash': ui.item.data('hash'),'index':
> >>> ui.item.index()};
> >>> attrs.ep = params;
> >>> Wicket.Ajax.ajax(attrs);
> >>> }
> >>> , "handle": ".handle" });
> >>> })();
> >>>
> >>> (function(){
> >>> jQuery('#sortable2c').selectable({
> >>> "cancel": "span", "filter": "li", "stop": function () {
> >>>
> >>> var indexes=[]; jQuery('.ui-selected', this).each( function()
> >> {
> >>> indexes.push(jQuery('#sortable2c li').index(this)); } );
> >>> var attrs =
> >>>
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> >>> var params = {'indexes': indexes};
> >>> attrs.ep = params;
> >>> Wicket.Ajax.ajax(attrs);
> >>> }
> >>> });
> >>>
> >>> })();
> >>>
> >>> On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
> >>>
> >>>> Hi Sebastian,
> >>>>
> >>>> I would like to render the container with the sortable items based on
> a
> >>>> Wicket event:
> >>>>
> >>>> @Override
> >>>> public void onEvent(IEvent<?> event) {
> >>>> super.onEvent(event);
> >>>>
> >>>> if (event.getPayload() instanceof AddItem) {
> >>>> ....
> >>>> update.getTarget().add(container);
> >>>> }
> >>>> }
> >>>>
> >>>> Thereby, I am getting following error. Has this something to do that
> >> some
> >>>> JS file has to be referenced in the panel instead of page?
> >>>>
> >>>> Thanks a lot,
> >>>> Chris
> >>>>
> >>>> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
> >>>> javascript: TypeError: undefined is not a function (evaluating
> >>>> 'jQuery('#sortable2c').sortable'), text:
> >>>>
> >>
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
> >>>> "update": function (event,ui) {
> >>>> var attrs =
> >>>>
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> >>>> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
> >>>> attrs.ep = params;
> >>>> Wicket.Ajax.ajax(attrs);
> >>>> }
> >>>> , "handle": ".handle"
> >>>> });})();(function(){jQuery('#sortable2c').selectable({ "cancel":
> "span",
> >>>> "filter": "li", "stop": function () {
> >>>> var indexes=[]; jQuery('.ui-selected', this).each( function() {
> >>>> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
> >>>>
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> >>>> var params = {'indexes': indexes};
> >>>> attrs.ep = params;
> >>>> Wicket.Ajax.ajax(attrs);
> >>>> }
> >>>> });})();
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>>
> >>>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function
Posted by Chris <ch...@gmx.at>.
Hi Sebastian,
I just did this - but nevertheless, if I do not include the same version in wicket:head, $(function () is not called in html head.
Does Wicket include it only for internal purposes, but not automatically for JS placed in HTML?
Thanks, Chris
> Am 26.04.2015 um 19:33 schrieb Sebastien <se...@gmail.com>:
>
> Hi Chris,
>
> You cannot have 2 concurrent versions of jquery...
>
> If you need to upgrade jquery version, please use:
> this.getJavaScriptLibrarySettings().setJQueryReference(jQueryReference) -
> in MyApplication#init()
>
> Hope this helps,
> Sebastien
>
>
> On Sun, Apr 26, 2015 at 7:14 PM, Chris <ch...@gmx.at> wrote:
>
>> Hi Sebastian,
>>
>> thanks for your help.
>>
>> the reason for this error seems that I load jquery-1.11.2.min.js in wicket
>> head next to jQuery-1.11.1 which is already loaded via wicket.
>>
>> However, when I restrain from loading jquery-1.11.2.min.js in wicket head
>> , the javascript $(function () {…} is not called although jQuery-1.11.1
>> seems to be loaded (via wicket).
>>
>> Why does this happen?
>>
>> Thanks Chris
>>
>>
>>> Am 26.04.2015 um 18:02 schrieb Sebastien <se...@gmail.com>:
>>>
>>> Hi Chris,
>>>
>>> AFAIS, the only thing that I think it could typically cause an issue is
>>> "calcHeight()". But the error message is misleading, I would have expect
>> a
>>> "calcHeight is undefined" instead, so I am not really sure...
>> Furthermore,
>>> I don't know how/where you have included the "calcHeight" function. If
>> the
>>> scope is window then try window.calcHeight();
>>>
>>> If it does not solve the issue or you suspect it comes from elsewhere
>>> please create a minimal quickstart that reproduce the issue and I will
>> have
>>> a look...
>>>
>>> Thanks & best regards,
>>> Sebastien.
>>>
>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
>>>
>> (function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
>>>
>>> (function(){ calcHeight();})();
>>>
>>>
>> (function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
>>>
>>> (function(){
>>> jQuery('#sortable2c').sortable({
>>> "update": function (event,ui) {
>>>
>>> var attrs =
>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
>>> var params = {'hash': ui.item.data('hash'),'index':
>>> ui.item.index()};
>>> attrs.ep = params;
>>> Wicket.Ajax.ajax(attrs);
>>> }
>>> , "handle": ".handle" });
>>> })();
>>>
>>> (function(){
>>> jQuery('#sortable2c').selectable({
>>> "cancel": "span", "filter": "li", "stop": function () {
>>>
>>> var indexes=[]; jQuery('.ui-selected', this).each( function()
>> {
>>> indexes.push(jQuery('#sortable2c li').index(this)); } );
>>> var attrs =
>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
>>> var params = {'indexes': indexes};
>>> attrs.ep = params;
>>> Wicket.Ajax.ajax(attrs);
>>> }
>>> });
>>>
>>> })();
>>>
>>> On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
>>>
>>>> Hi Sebastian,
>>>>
>>>> I would like to render the container with the sortable items based on a
>>>> Wicket event:
>>>>
>>>> @Override
>>>> public void onEvent(IEvent<?> event) {
>>>> super.onEvent(event);
>>>>
>>>> if (event.getPayload() instanceof AddItem) {
>>>> ....
>>>> update.getTarget().add(container);
>>>> }
>>>> }
>>>>
>>>> Thereby, I am getting following error. Has this something to do that
>> some
>>>> JS file has to be referenced in the panel instead of page?
>>>>
>>>> Thanks a lot,
>>>> Chris
>>>>
>>>> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
>>>> javascript: TypeError: undefined is not a function (evaluating
>>>> 'jQuery('#sortable2c').sortable'), text:
>>>>
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
>>>> "update": function (event,ui) {
>>>> var attrs =
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
>>>> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
>>>> attrs.ep = params;
>>>> Wicket.Ajax.ajax(attrs);
>>>> }
>>>> , "handle": ".handle"
>>>> });})();(function(){jQuery('#sortable2c').selectable({ "cancel": "span",
>>>> "filter": "li", "stop": function () {
>>>> var indexes=[]; jQuery('.ui-selected', this).each( function() {
>>>> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
>>>>
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
>>>> var params = {'indexes': indexes};
>>>> attrs.ep = params;
>>>> Wicket.Ajax.ajax(attrs);
>>>> }
>>>> });})();
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable, with Selectable; Exception evaluating javascript:
TypeError: undefined is not a function
Posted by Sebastien <se...@gmail.com>.
Hi Chris,
You cannot have 2 concurrent versions of jquery...
If you need to upgrade jquery version, please use:
this.getJavaScriptLibrarySettings().setJQueryReference(jQueryReference) -
in MyApplication#init()
Hope this helps,
Sebastien
On Sun, Apr 26, 2015 at 7:14 PM, Chris <ch...@gmx.at> wrote:
> Hi Sebastian,
>
> thanks for your help.
>
> the reason for this error seems that I load jquery-1.11.2.min.js in wicket
> head next to jQuery-1.11.1 which is already loaded via wicket.
>
> However, when I restrain from loading jquery-1.11.2.min.js in wicket head
> , the javascript $(function () {…} is not called although jQuery-1.11.1
> seems to be loaded (via wicket).
>
> Why does this happen?
>
> Thanks Chris
>
>
> > Am 26.04.2015 um 18:02 schrieb Sebastien <se...@gmail.com>:
> >
> > Hi Chris,
> >
> > AFAIS, the only thing that I think it could typically cause an issue is
> > "calcHeight()". But the error message is misleading, I would have expect
> a
> > "calcHeight is undefined" instead, so I am not really sure...
> Furthermore,
> > I don't know how/where you have included the "calcHeight" function. If
> the
> > scope is window then try window.calcHeight();
> >
> > If it does not solve the issue or you suspect it comes from elsewhere
> > please create a minimal quickstart that reproduce the issue and I will
> have
> > a look...
> >
> > Thanks & best regards,
> > Sebastien.
> >
> >
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
> >
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
> >
> (function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
> >
> (function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
> >
> (function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
> >
> (function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
> >
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
> >
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
> >
> (function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
> >
> > (function(){ calcHeight();})();
> >
> >
> (function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
> >
> > (function(){
> > jQuery('#sortable2c').sortable({
> > "update": function (event,ui) {
> >
> > var attrs =
> >
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> > var params = {'hash': ui.item.data('hash'),'index':
> > ui.item.index()};
> > attrs.ep = params;
> > Wicket.Ajax.ajax(attrs);
> > }
> > , "handle": ".handle" });
> > })();
> >
> > (function(){
> > jQuery('#sortable2c').selectable({
> > "cancel": "span", "filter": "li", "stop": function () {
> >
> > var indexes=[]; jQuery('.ui-selected', this).each( function()
> {
> > indexes.push(jQuery('#sortable2c li').index(this)); } );
> > var attrs =
> >
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> > var params = {'indexes': indexes};
> > attrs.ep = params;
> > Wicket.Ajax.ajax(attrs);
> > }
> > });
> >
> > })();
> >
> > On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
> >
> >> Hi Sebastian,
> >>
> >> I would like to render the container with the sortable items based on a
> >> Wicket event:
> >>
> >> @Override
> >> public void onEvent(IEvent<?> event) {
> >> super.onEvent(event);
> >>
> >> if (event.getPayload() instanceof AddItem) {
> >> ....
> >> update.getTarget().add(container);
> >> }
> >> }
> >>
> >> Thereby, I am getting following error. Has this something to do that
> some
> >> JS file has to be referenced in the panel instead of page?
> >>
> >> Thanks a lot,
> >> Chris
> >>
> >> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
> >> javascript: TypeError: undefined is not a function (evaluating
> >> 'jQuery('#sortable2c').sortable'), text:
> >>
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
> >> "update": function (event,ui) {
> >> var attrs =
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> >> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
> >> attrs.ep = params;
> >> Wicket.Ajax.ajax(attrs);
> >> }
> >> , "handle": ".handle"
> >> });})();(function(){jQuery('#sortable2c').selectable({ "cancel": "span",
> >> "filter": "li", "stop": function () {
> >> var indexes=[]; jQuery('.ui-selected', this).each( function() {
> >> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
> >>
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> >> var params = {'indexes': indexes};
> >> attrs.ep = params;
> >> Wicket.Ajax.ajax(attrs);
> >> }
> >> });})();
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Sortable, with Selectable; Exception evaluating javascript: TypeError: undefined is not a function
Posted by Chris <ch...@gmx.at>.
Hi Sebastian,
thanks for your help.
the reason for this error seems that I load jquery-1.11.2.min.js in wicket head next to jQuery-1.11.1 which is already loaded via wicket.
However, when I restrain from loading jquery-1.11.2.min.js in wicket head , the javascript $(function () {…} is not called although jQuery-1.11.1 seems to be loaded (via wicket).
Why does this happen?
Thanks Chris
> Am 26.04.2015 um 18:02 schrieb Sebastien <se...@gmail.com>:
>
> Hi Chris,
>
> AFAIS, the only thing that I think it could typically cause an issue is
> "calcHeight()". But the error message is misleading, I would have expect a
> "calcHeight is undefined" instead, so I am not really sure... Furthermore,
> I don't know how/where you have included the "calcHeight" function. If the
> scope is window then try window.calcHeight();
>
> If it does not solve the issue or you suspect it comes from elsewhere
> please create a minimal quickstart that reproduce the issue and I will have
> a look...
>
> Thanks & best regards,
> Sebastien.
>
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
> (function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
> (function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
> (function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
> (function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
> (function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
> (function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
>
> (function(){ calcHeight();})();
>
> (function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
>
> (function(){
> jQuery('#sortable2c').sortable({
> "update": function (event,ui) {
>
> var attrs =
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> var params = {'hash': ui.item.data('hash'),'index':
> ui.item.index()};
> attrs.ep = params;
> Wicket.Ajax.ajax(attrs);
> }
> , "handle": ".handle" });
> })();
>
> (function(){
> jQuery('#sortable2c').selectable({
> "cancel": "span", "filter": "li", "stop": function () {
>
> var indexes=[]; jQuery('.ui-selected', this).each( function() {
> indexes.push(jQuery('#sortable2c li').index(this)); } );
> var attrs =
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> var params = {'indexes': indexes};
> attrs.ep = params;
> Wicket.Ajax.ajax(attrs);
> }
> });
>
> })();
>
> On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
>
>> Hi Sebastian,
>>
>> I would like to render the container with the sortable items based on a
>> Wicket event:
>>
>> @Override
>> public void onEvent(IEvent<?> event) {
>> super.onEvent(event);
>>
>> if (event.getPayload() instanceof AddItem) {
>> ....
>> update.getTarget().add(container);
>> }
>> }
>>
>> Thereby, I am getting following error. Has this something to do that some
>> JS file has to be referenced in the panel instead of page?
>>
>> Thanks a lot,
>> Chris
>>
>> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
>> javascript: TypeError: undefined is not a function (evaluating
>> 'jQuery('#sortable2c').sortable'), text:
>> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
>> "update": function (event,ui) {
>> var attrs =
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
>> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
>> attrs.ep = params;
>> Wicket.Ajax.ajax(attrs);
>> }
>> , "handle": ".handle"
>> });})();(function(){jQuery('#sortable2c').selectable({ "cancel": "span",
>> "filter": "li", "stop": function () {
>> var indexes=[]; jQuery('.ui-selected', this).each( function() {
>> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
>> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
>> var params = {'indexes': indexes};
>> attrs.ep = params;
>> Wicket.Ajax.ajax(attrs);
>> }
>> });})();
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Sortable, with Selectable; Exception evaluating javascript:
TypeError: undefined is not a function
Posted by Sebastien <se...@gmail.com>.
Hi Chris,
AFAIS, the only thing that I think it could typically cause an issue is
"calcHeight()". But the error message is misleading, I would have expect a
"calcHeight is undefined" instead, so I am not really sure... Furthermore,
I don't know how/where you have included the "calcHeight" function. If the
scope is window then try window.calcHeight();
If it does not solve the issue or you suspect it comes from elsewhere
please create a minimal quickstart that reproduce the issue and I will have
a look...
Thanks & best regards,
Sebastien.
(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();
(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();
(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();
(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();
(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();
(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();
(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();
(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();
(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();
(function(){ calcHeight();})();
(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();
(function(){
jQuery('#sortable2c').sortable({
"update": function (event,ui) {
var attrs =
{"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
var params = {'hash': ui.item.data('hash'),'index':
ui.item.index()};
attrs.ep = params;
Wicket.Ajax.ajax(attrs);
}
, "handle": ".handle" });
})();
(function(){
jQuery('#sortable2c').selectable({
"cancel": "span", "filter": "li", "stop": function () {
var indexes=[]; jQuery('.ui-selected', this).each( function() {
indexes.push(jQuery('#sortable2c li').index(this)); } );
var attrs =
{"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
var params = {'indexes': indexes};
attrs.ep = params;
Wicket.Ajax.ajax(attrs);
}
});
})();
On Sun, Apr 26, 2015 at 2:08 AM, Chris <ch...@gmx.at> wrote:
> Hi Sebastian,
>
> I would like to render the container with the sortable items based on a
> Wicket event:
>
> @Override
> public void onEvent(IEvent<?> event) {
> super.onEvent(event);
>
> if (event.getPayload() instanceof AddItem) {
> ....
> update.getTarget().add(container);
> }
> }
>
> Thereby, I am getting following error. Has this something to do that some
> JS file has to be referenced in the panel instead of page?
>
> Thanks a lot,
> Chris
>
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating
> javascript: TypeError: undefined is not a function (evaluating
> 'jQuery('#sortable2c').sortable'), text:
> (function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteup47","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-voteup","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedown48","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-voting-form-votedown","e":"click","f":"form46","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"thumbTitleLink49","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-thumbTitleLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"remove4a","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-remove","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"position4b","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem-position","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"poiItem4c","u":"./rec?2-1.IBehaviorListener.0-poiList-poiItems-3-poiItemPanel-poiItem","e":"click"});})();(function(){Wicket.Ajax.ajax({"sc":"voteup","c":"voteupab","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-voteup","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"sc":"votedown","c":"votedownac","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-voting-form-votedown","e":"click","f":"formaa","m":"POST"});})();(function(){Wicket.Ajax.ajax({"c":"shuffleae","u":"./rec?2-1.IBehaviorListener.0-rightPanel-poiDetail-flickrGallery-shuffle","e":"click"});})();(function(){calcHeight();})();(function(){Wicket.Ajax.ajax({"c":"deleteAll","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-deleteAll","e":"click"});})();(function(){jQuery('#sortable2c').sortable({
> "update": function (event,ui) {
> var attrs =
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.0-suitcasePanel-container-sortable"};
> var params = {'hash': ui.item.data('hash'),'index': ui.item.index()};
> attrs.ep = params;
> Wicket.Ajax.ajax(attrs);
> }
> , "handle": ".handle"
> });})();(function(){jQuery('#sortable2c').selectable({ "cancel": "span",
> "filter": "li", "stop": function () {
> var indexes=[]; jQuery('.ui-selected', this).each( function() {
> indexes.push(jQuery('#sortable2c li').index(this)); } ); var attrs =
> {"c":"sortable2c","u":"./rec?2-1.IBehaviorListener.1-suitcasePanel-container-sortable"};
> var params = {'indexes': indexes};
> attrs.ep = params;
> Wicket.Ajax.ajax(attrs);
> }
> });})();
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>