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
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
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
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
t)" with
> > > "AjaxRequestAttributes# onSuccess(."
> > >
> > >
> > > *Is it correct?*
> > >
> > >
> > >
> > >
> > > On Mon, Sep 26, 2016 at 4:35 PM, Tobias Soloschenko <
> > > tobiassolosche...@googlemail.co
; >>
> >> 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?
> >>
> >
> >
>
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?
>>
>
>
; 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?
>
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?
>
" in wicket 7
> AjaxCallListener?
>
> Any help?
How to replace the "new CancelEventIfNoAjaxDecorator();" in wicket 7
AjaxCallListener?
Any help?
gt; @Override
> > protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
> > super.updateAjaxAttributes(attributes);
> >
> > AjaxCallListener myAjaxCallListener = new AjaxCallListener() {
> >
> > @Override
> &
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 myAjaxCallListener = new AjaxCallListener() {
@Override
public CharSequence getFailureHandler(Component component) {
return BlockerBehaviour.getJSUnBlock();
}
@Override
public CharSequence getBeforeHandler(Component component
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
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
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
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
://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
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
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
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
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:
: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
24 matches
Mail list logo