You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Dietze <di...@fh-wedel.de> on 2013/02/22 10:36:07 UTC

Migration issue: fire AjaxFormComponentUpdatingBehavior("change") by Javascript the Wicket 6 way?

I understand that with Wicket 6 the event handlers are no longer
inline, thus calling input.onchange() will no longer work. 

But what do I now do instead? I have hand-written inputs which
rely on onchange() being called via Javascript after user
interaction. So what do I have to call inside my JS code to have
a AjaxFormComponentUpdatingBehavior("change") invoked in my Java
code? 

Cheers,

M'bert

-- 
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+= 
Hier ich bin, steine Dich wie ein Wirbelwind.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Migration issue: fire AjaxFormComponentUpdatingBehavior("change") by Javascript the Wicket 6 way?

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
$("#componentid').trigger('change');?

On Fri, Feb 22, 2013 at 10:36 AM, Martin Dietze <di...@fh-wedel.de> wrote:

> I understand that with Wicket 6 the event handlers are no longer
> inline, thus calling input.onchange() will no longer work.
>
> But what do I now do instead? I have hand-written inputs which
> rely on onchange() being called via Javascript after user
> interaction. So what do I have to call inside my JS code to have
> a AjaxFormComponentUpdatingBehavior("change") invoked in my Java
> code?
>
> Cheers,
>
> M'bert
>
> --
> ----------- / http://herbert.the-little-red-haired-girl.org /
> -------------
> =+=
> Hier ich bin, steine Dich wie ein Wirbelwind.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Re: Migration issue: fire AjaxFormComponentUpdatingBehavior("change") by Javascript the Wicket 6 way?

Posted by Martin Grigorov <mg...@apache.org>.
jQuery(selector).triggerHandler('change')


On Fri, Feb 22, 2013 at 11:36 AM, Martin Dietze <di...@fh-wedel.de> wrote:

> I understand that with Wicket 6 the event handlers are no longer
> inline, thus calling input.onchange() will no longer work.
>
> But what do I now do instead? I have hand-written inputs which
> rely on onchange() being called via Javascript after user
> interaction. So what do I have to call inside my JS code to have
> a AjaxFormComponentUpdatingBehavior("change") invoked in my Java
> code?
>
> Cheers,
>
> M'bert
>
> --
> ----------- / http://herbert.the-little-red-haired-girl.org /
> -------------
> =+=
> Hier ich bin, steine Dich wie ein Wirbelwind.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>