Re: Sortable
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 chris...@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 mgrigo...@apache.org: IsEnabled(Component) is member of the behavior. This is the reason to override newWidgetBehavior() On Jun 11, 2015 6:31 PM, Chris chris...@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 mgrigo...@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 chris...@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
up to date Wicket presentation?
Dear Wicketeers, Does anyone has, and is willing to share, a recent (in English) presentation of Apache Wicket? I mean newer than http://www.slideshare.net/jbaruch/wicket-presentation-alphacsp-java-web-frameworks-playoff-2008 which is, by the way, a nice presentation :-) -- Regards - Ernesto Reinaldo Barreiro
Please, I need help to add noscript tag with Wicket
Hi all! I need add a noscript tag with this image in wicket, ¿can someone help me please?: noscript div style=display:inline; img height=1 width=1 style=border-style:none; alt= src=//www.googleadservices.com/pagead/conversion/...example/ /div /noscript Thanks a lot!!! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: up to date Wicket presentation?
THANKS! On Fri, Jun 12, 2015 at 12:19 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Ernesto, See http://markmail.org/message/ys5ra7zg2dsiphps Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 1:06 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Dear Wicketeers, Does anyone has, and is willing to share, a recent (in English) presentation of Apache Wicket? I mean newer than http://www.slideshare.net/jbaruch/wicket-presentation-alphacsp-java-web-frameworks-playoff-2008 which is, by the way, a nice presentation :-) -- Regards - Ernesto Reinaldo Barreiro -- Regards - Ernesto Reinaldo Barreiro
Re: up to date Wicket presentation?
Hi Ernesto, See http://markmail.org/message/ys5ra7zg2dsiphps Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 1:06 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Dear Wicketeers, Does anyone has, and is willing to share, a recent (in English) presentation of Apache Wicket? I mean newer than http://www.slideshare.net/jbaruch/wicket-presentation-alphacsp-java-web-frameworks-playoff-2008 which is, by the way, a nice presentation :-) -- Regards - Ernesto Reinaldo Barreiro
TextField - AjaxEventBehavior-onBlur - onEvent
Wicket v1.4.17 I have a Form with a TextField and, among other things, two submit buttons. One is a typical submit button, the other is a submit button that acts as a cancel (closes stuff out and goes to the previous page). This TextField has an AjaxEventBehavior of onBlur added to it, and inside that behavior, onEvent is overridden. onEvent does some validation of the TextField's contents and dynamically updates some stuff on the page. Meaning, when the TextField loses focus, it's going to immediately update a table on the page. The problem, however, is that the TextField has DefaultFocusBehavior on it as well so that when you first visit the page, the TextField already has focus. So upon first visiting the page, if you try to click either of the submit buttons (well, the cancel submit button really, because the other submit button is disabled until the TextField gets input), you have to click it twice before it activates. The first click does nothing, i.e., the onSubmit method doesn't fire. This appears to be caused by the onBlur/onEvent deal, because clicking the button means the TextField has lost focus, but it somehow results in that click not registering. Of course, commenting out the DefaultFocusBehavior line makes everything work fine since the TextField doesn't have focus on the first visit to the page, but since having focus on the TextField is our desired behavior, is there a way to make this work? Between NetBeans code completion in source and messing around in the debugger, I couldn't see a way to find out which component, if any, was clicked in order to trigger the onBlur/onEvent. That would be easy because I could see if it was the cancel button, and if so, I could trigger it's onSubmit (if that's actually even possible). I also didn't see any methods available to any component while inside the onEvent method that would help me get this working right. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-AjaxEventBehavior-onBlur-onEvent-tp4671150.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Please, I need help to add noscript tag with Wicket
Hi Roberto, What exactly is the problem? Which part of the HTML is dynamic? BTW you can use span instead of div style=display:inline. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 2:57 PM, Roberto Lavalle de Juan roberto.lava...@tellmegen.com wrote: Hi all! I need add a noscript tag with this image in wicket, ¿can someone help me please?: noscript div style=display:inline; img height=1 width=1 style=border-style:none; alt= src=// www.googleadservices.com/pagead/conversion/...example/ /div /noscript Thanks a lot!!! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: up to date Wicket presentation?
Hi Ernesto, Did you find something that corresponds to your need and which is more recent than 2008 or 2010 (introducing wicket 6 7)? ;) I gave a 2 hours presentation yesterday based on very old slides I made several years ago, themselves based on a Martijn presentation... so I spoke a lot outside slides... :). I will probably have to give others in a short future, so if you find something (like the one you mentioned, or Martijn's 2010 one), please tell me! :) Thanks best regards, Sebastien. On Fri, Jun 12, 2015 at 1:39 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: THANKS! On Fri, Jun 12, 2015 at 12:19 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Ernesto, See http://markmail.org/message/ys5ra7zg2dsiphps Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jun 12, 2015 at 1:06 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Dear Wicketeers, Does anyone has, and is willing to share, a recent (in English) presentation of Apache Wicket? I mean newer than http://www.slideshare.net/jbaruch/wicket-presentation-alphacsp-java-web-frameworks-playoff-2008 which is, by the way, a nice presentation :-) -- Regards - Ernesto Reinaldo Barreiro -- Regards - Ernesto Reinaldo Barreiro