Re: AjaxCallListener and promises

2017-05-12 Thread Martin Grigorov
Thanks for sharing this solution, Boris! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, May 12, 2017 at 3:23 PM, Boris Goldowsky wrote: > For anyone who may have a similar issue and find this thread, here’s the > workaround I used. >

Re: AjaxCallListener and promises

2017-05-12 Thread Boris Goldowsky
For anyone who may have a similar issue and find this thread, here’s the workaround I used. Desired behavior was to have an AJAX submit on a form that includes a drawing widget. The drawing can’t be saved directly; it needs to be asked to export its data into a hidden text field which can be

Re: AjaxCallListener and promises

2017-05-03 Thread Martin Grigorov
Hi, No, Wicket doesn't use the return values for all handlers but "preconditions" [1]. And even for preconditions the only value that matters is the literal *false.* 1.

Re: AjaxCallListener

2016-09-27 Thread durairaj t
Thank you! On Tue, Sep 27, 2016 at 10:21 AM, Martin Grigorov wrote: > Hi, > > decorateScript() means "do something before and after". > So you need IAjaxCallListener's onBefore() and onComplete() > > Martin Grigorov > Wicket Training and Consulting >

Re: AjaxCallListener

2016-09-27 Thread Martin Grigorov
Hi, decorateScript() means "do something before and after". So you need IAjaxCallListener's onBefore() and onComplete() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 27, 2016 at 4:11 PM, durairaj t wrote: > Based on the

Re: AjaxCallListener

2016-09-27 Thread durairaj t
Based on the wicket 1.5 comments in IAjaxCallDecorator.java, I think, I may need to use "beforeSend" for "decorateScript" and "onSuccess" for "decorateOnSuccessScript". But I'm not sure. Any help? *Code snippet from wicket 1.5 IAjaxCallDecorator.java* /** * Decorates the script that performs

Re: AjaxCallListener

2016-09-27 Thread durairaj t
Hi, I'm replacing "decorateScript(Component arg0,CharSequence script)" with "AjaxRequestAttributes#getSuccessHandler(Component component)" and "decorateOnSuccessScript(Component arg0,CharSequence script)" with "AjaxRequestAttributes# onSuccess(." *Is it correct?* On Mon, Sep 26, 2016

Re: AjaxCallListener

2016-09-26 Thread durairaj t
Ya. I used AjaxRequestAttributes#setPreventDefault(true); Thank you! On Mon, Sep 26, 2016 at 4:35 PM, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Hi, > > I just googled for it: > > http://apache-wicket.1842946.n4.nabble.com/Migration-1-5-gt-6- >

Re: AjaxCallListener

2016-09-26 Thread Tobias Soloschenko
Hi, I just googled for it: http://apache-wicket.1842946.n4.nabble.com/Migration-1-5-gt-6-CancelEventIfNoAjaxDecorator-td4652609.html Hope this helps. kind regards Tobias > Am 26.09.2016 um 22:13 schrieb durairaj t : > > How to replace the "new

Re: AjaxCallListener and script of Component

2013-07-11 Thread Martin Grigorov
Hi, Read https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-o.a.w.ajax.IAjaxCallDecoratorisreplacedwitho.a.w.ajax.attributes.IAjaxCallListener. On Thu, Jul 11, 2013 at 3:38 PM, Altuğ Bilgin Altıntaş alt...@gmail.comwrote: Hi all; We are trying to migrate from Wicket

Re: AjaxCallListener and script of Component

2013-07-11 Thread Altuğ Bilgin Altıntaş
Thanks. On Thu, Jul 11, 2013 at 3:42 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Read https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-o.a.w.ajax.IAjaxCallDecoratorisreplacedwitho.a.w.ajax.attributes.IAjaxCallListener . On Thu, Jul 11, 2013 at 3:38 PM,

Re: AjaxCallListener precondition with user input

2012-11-26 Thread Thomas Heigl
Hey Sekib, Thanks a lot for your input! In case anybody has a similar problem, I ended up solving it through an AjaxCallListener with a little workaround. If the user confirms the alert, I re-trigger a click on the link with additional data and check for that in my precondition. This can be used

Re: AjaxCallListener precondition with user input

2012-11-05 Thread Sekib_Omazic
If this is an option for you, you could use modal dialog from twitter bootstrap (short example can be fond here: https://github.com/sekib/twittermodal). I don't use public CharSequence getPrecondition(final Component component) at all. Modal dialog is shown after clicking the link (no ajax call).

Re: AjaxCallListener precondition with user input

2012-11-03 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to Jira. On Fri, Nov 2, 2012 at 2:26 PM, Thomas Heigl tho...@umschalt.com wrote: Hey all, I'm currently in the progress of migrating a largish Wicket 1.5 app to Wicket 6.2. The only major problem I could not resolve so far are precondition