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. > > Desired behavior was

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 s

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. https://github.com/apache/wicket/blob/b24decd2f60983c11e75e5f2c34d0c6a93b56426/wicket-core/src/main/java/org/apache/wicket/ajax

AjaxCallListener and promises

2017-05-03 Thread Boris Goldowsky
Is there any way to use a method that returns a promise as the onBefore of an IAxaxCallListener? I don’t want the ajax operation to move forward until the promise resolves. Due to the nature of promises in Javascript, there doesn’t seem to be a way to simply wait for it. Boris

Re: AjaxCallListener

2016-09-27 Thread durairaj t
t)" with > > > "AjaxRequestAttributes# onSuccess(." > > > > > > > > > *Is it correct?* > > > > > > > > > > > > > > > On Mon, Sep 26, 2016 at 4:35 PM, Tobias Soloschenko < > > > tobiassolosche...@googlemail.co

Re: AjaxCallListener

2016-09-27 Thread Martin Grigorov
; >> > >> 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 CancelEventIfNoAjaxDecorator();" in wicket 7 > >> > AjaxCallListener? > >> > > >> > Any help? > >> > > > > >

Re: AjaxCallListener

2016-09-27 Thread durairaj t
nko < > tobiassolosche...@googlemail.com> wrote: > >> 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 CancelEventIfNoAjaxDecorator();" in wicket 7 >> > AjaxCallListener? >> > >> > Any help? >> > >

Re: AjaxCallListener

2016-09-27 Thread durairaj t
; Hope this helps. > > kind regards > > Tobias > > > Am 26.09.2016 um 22:13 schrieb durairaj t : > > > > How to replace the "new CancelEventIfNoAjaxDecorator();" in wicket 7 > > AjaxCallListener? > > > > Any help? >

Re: AjaxCallListener

2016-09-26 Thread durairaj t
elEventIfNoAjaxDecorator-td4652609.html > > Hope this helps. > > kind regards > > Tobias > > > Am 26.09.2016 um 22:13 schrieb durairaj t : > > > > How to replace the "new CancelEventIfNoAjaxDecorator();" in wicket 7 > > AjaxCallListener? > > > > Any help? >

Re: AjaxCallListener

2016-09-26 Thread Tobias Soloschenko
" in wicket 7 > AjaxCallListener? > > Any help?

AjaxCallListener

2016-09-26 Thread durairaj t
How to replace the "new CancelEventIfNoAjaxDecorator();" in wicket 7 AjaxCallListener? Any help?

Re: AjaxCallListener and script of Component

2013-07-11 Thread Altuğ Bilgin Altıntaş
gt; @Override > > protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { > > super.updateAjaxAttributes(attributes); > > > > AjaxCallListener myAjaxCallListener = new AjaxCallListener() { > > > > @Override > &

Re: AjaxCallListener and script of Component

2013-07-11 Thread Martin Grigorov
to 6.9.0. > > We encountered a strange problem. > > Here is the migrated code (which is working incorrectly): > > @Override > protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { > super.updateAjaxAttributes(attributes); > > Aj

AjaxCallListener and script of Component

2013-07-11 Thread Altuğ Bilgin Altıntaş
); AjaxCallListener myAjaxCallListener = new AjaxCallListener() { @Override public CharSequence getFailureHandler(Component component) { return BlockerBehaviour.getJSUnBlock(); } @Override public CharSequence getBeforeHandler(Component component

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
call). Only a click on "Of course" button triggers an ajax call. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxCallListener-precondition-with-user-input-tp4653566p4653622.html Sent from the Users forum mailing list archiv

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 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 scripts with user inp

AjaxCallListener precondition with user input

2012-11-02 Thread Thomas Heigl
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 scripts with user input. My old code looked like this: @Override > public CharSequence postDecorateScript(Component component, Cha

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
://apache-wicket.1842946.n4.nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404p4652412.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubsc

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404p4652412.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional comman

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
d the same AjaxCallListener to all components on a panel: this.visitChildren(new IVisitor() { public void component(Component component, IVisit visit) { //here I want to add the AjaxCallListener to the component. I can't use updateAjaxAttributes here.. The compon

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
omponent){ > // here i want to add behavior for all kind of components > component.getAjaxRequestAttributes().add(new AjaxCallListener()); > } > > So the implementation you suggest isn't applicable in my situation I guess.. > > > > -- > View this messa

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
MyFeedBackComponent(LabeledWebMarkupContainer component){ // here i want to add behavior for all kind of components component.getAjaxRequestAttributes().add(new AjaxCallListener()); } So the implementation you suggest isn't applicable in my situation I guess.. -- View this message in context:

Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Martin Grigorov
:34 AM, Marieke Vandamme wrote: > Hi, > > Is there a way to add a AjaxCallListener to an exiting component? > The only way I know off is to override updateAjaxAttributes, but that is > only possible when constructing the component. > Is there something like component.getAja