Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-25 Thread Ernesto Reinaldo Barreiro
@Martin,

Thanks! The question is why this worked on 1.6.x?

On Wed, Feb 24, 2016 at 10:41 PM, Martin Grigorov 
wrote:

> The problem in https://github.com/reiern70/bug-on-change is that it
> includes a second copy of jquery.js after the one contributed by Wicket and
> wicket-xyz.js.
> In HomePage.html just remove  and all works fine again.
>
> I see the same in Radovan's project so I assume the same solution will work
> too.
>
> Have fun!
>
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Feb 24, 2016 at 4:46 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax
> >
> > On Wed, Feb 24, 2016 at 3:45 PM, Radovan Račák 
> > wrote:
> >
> > > Ok,
> > > now I am solving some workaround of this problem, please do you have
> any
> > > idea how can I edit values with javascript and handling this event in
> > Java
> > > Ajax Handler?
> > >
> > > Thank you
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673712.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
> > >
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-25 Thread Ernesto Reinaldo Barreiro
I will check if that was my problem too.

On Thu, Feb 25, 2016 at 9:36 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> @Martin,
>
> Thanks! The question is why this worked on 1.6.x?
>
> On Wed, Feb 24, 2016 at 10:41 PM, Martin Grigorov 
> wrote:
>
>> The problem in https://github.com/reiern70/bug-on-change is that it
>> includes a second copy of jquery.js after the one contributed by Wicket
>> and
>> wicket-xyz.js.
>> In HomePage.html just remove  and all works fine again.
>>
>> I see the same in Radovan's project so I assume the same solution will
>> work
>> too.
>>
>> Have fun!
>>
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Wed, Feb 24, 2016 at 4:46 PM, Ernesto Reinaldo Barreiro <
>> reier...@gmail.com> wrote:
>>
>> > https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax
>> >
>> > On Wed, Feb 24, 2016 at 3:45 PM, Radovan Račák > >
>> > wrote:
>> >
>> > > Ok,
>> > > now I am solving some workaround of this problem, please do you have
>> any
>> > > idea how can I edit values with javascript and handling this event in
>> > Java
>> > > Ajax Handler?
>> > >
>> > > Thank you
>> > >
>> > > --
>> > > View this message in context:
>> > >
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673712.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
>> > >
>> > >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>> >
>>
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-25 Thread Radovan Račák
Yes! That was the problem. 
Thank you

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673727.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Martin Grigorov
The problem in https://github.com/reiern70/bug-on-change is that it
includes a second copy of jquery.js after the one contributed by Wicket and
wicket-xyz.js.
In HomePage.html just remove  and all works fine again.

I see the same in Radovan's project so I assume the same solution will work
too.

Have fun!


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Feb 24, 2016 at 4:46 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax
>
> On Wed, Feb 24, 2016 at 3:45 PM, Radovan Račák 
> wrote:
>
> > Ok,
> > now I am solving some workaround of this problem, please do you have any
> > idea how can I edit values with javascript and handling this event in
> Java
> > Ajax Handler?
> >
> > Thank you
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673712.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
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Ernesto Reinaldo Barreiro
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax

On Wed, Feb 24, 2016 at 3:45 PM, Radovan Račák 
wrote:

> Ok,
> now I am solving some workaround of this problem, please do you have any
> idea how can I edit values with javascript and handling this event in Java
> Ajax Handler?
>
> Thank you
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673712.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
Ok,
now I am solving some workaround of this problem, please do you have any
idea how can I edit values with javascript and handling this event in Java
Ajax Handler?

Thank you

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673712.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Ernesto Reinaldo Barreiro
@Radovan.

Can you please create the issue, please? I do not have much at the moment
:-(

On Wed, Feb 24, 2016 at 3:20 PM, Martin Grigorov 
wrote:

> Please create a ticket at Wicket JIRA and link/attach the quickstart too!
> Thanks!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Feb 24, 2016 at 2:44 PM, Radovan Račák 
> wrote:
>
> > I think it is bug too. I tried run this project in Wicket version 6.22
> and
> > it
> > works
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673708.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
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Martin Grigorov
Please create a ticket at Wicket JIRA and link/attach the quickstart too!
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Feb 24, 2016 at 2:44 PM, Radovan Račák 
wrote:

> I think it is bug too. I tried run this project in Wicket version 6.22 and
> it
> works
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673708.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
I think it is bug too. I tried run this project in Wicket version 6.22 and it
works

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673708.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Ernesto Reinaldo Barreiro
@Radovan,

Thanks for quick-start.

@Martin,

I think it is a wicket 7.2.0 bug. Maybe the same bug I mentioned here

http://comments.gmane.org/gmane.comp.java.wicket.user/120356

?

You can test it with

https://github.com/reiern70/bug-on-change

Apologies for all the "idea" noise on project but I'm "short on time". It
seems to work fine with 6.22.0




On Wed, Feb 24, 2016 at 12:18 PM, Radovan Račák 
wrote:

> Okey,
>
> here is quickstart project
> https://github.com/vanrado/quickstart
>    with one HomePage, in
> HomePage.html I am changing input value by Javascript when user click on
> the
> link, and I have OnChangeAjaxBehavior in Java class of that Page
>
> Thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673706.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
Okey,

here is quickstart project 
https://github.com/vanrado/quickstart
   with one HomePage, in
HomePage.html I am changing input value by Javascript when user click on the
link, and I have OnChangeAjaxBehavior in Java class of that Page

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673706.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Ernesto Reinaldo Barreiro
Please create a quick-start in the sense of

https://wicket.apache.org/start/quickstart.html

It will not take you more than 10 minutes.

On Wed, Feb 24, 2016 at 10:34 AM, Radovan Račák 
wrote:

> No problem,
>
> but at this moment a couldn't clean my example project from nested classes.
> I upload it to github from browser. I don't have my machine now.
> So :
> https://github.com/vanrado/poznamky 
>
> I describe how to find right files in that project.
>
> Thanks for help, I really appreciate it!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673704.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
No problem,

but at this moment a couldn't clean my example project from nested classes.
I upload it to github from browser. I don't have my machine now.
So : 
https://github.com/vanrado/poznamky   

I describe how to find right files in that project.

Thanks for help, I really appreciate it!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673704.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Ernesto Reinaldo Barreiro
Can you create a quickstart somewhere (e.g. github)?

On Wed, Feb 24, 2016 at 9:45 AM, Radovan Račák 
wrote:

> Hi,
>
> thanks a lot but your advice doesn't work. I tried it for first just
> OnChangeAjaxBehavior with trigger("change") and then I tried
> OnChangeAjaxBehavior with trigger("inputchange"), in both cases it doesn't
> work.
>
> I also tried change fields input value from JS console and then call
> trigger("change") or trigger("inputchange") on field element.. Doesn't
> invoke my Java Ajax Handler :-/
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673702.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
Hi,

thanks a lot but your advice doesn't work. I tried it for first just
OnChangeAjaxBehavior with trigger("change") and then I tried
OnChangeAjaxBehavior with trigger("inputchange"), in both cases it doesn't
work. 

I also tried change fields input value from JS console and then call
trigger("change") or trigger("inputchange") on field element.. Doesn't
invoke my Java Ajax Handler :-/

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673702.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Martin Grigorov
Hi,

Try with OnChangeAjaxBehavior() instead of AFCUB("change")
and triggerHandler("inputchange") instead of "change".

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Feb 24, 2016 at 8:27 AM, Radovan Račák 
wrote:

> Thank you very much for really fast response and help,
>
> but it seems it still doesn't work. I tried call trigger(event) and
> triggerHandler(event) functions but both of them didn't invoke my Ajax
> handler in Java.
>
> This is my Javascript from where I am updating textfields value and calling
> trigger function:
> *// updating input field values
> this.rangeSlider.noUiSlider.on('update', function (values, handle)
> {
> var value = values[handle];
> this.inputField.value = value;
> $(this.inputField).triggerHandler('change');
> }.bind(this));*
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673700.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-24 Thread Radovan Račák
Thank you very much for really fast response and help,

but it seems it still doesn't work. I tried call trigger(event) and
triggerHandler(event) functions but both of them didn't invoke my Ajax
handler in Java. 

This is my Javascript from where I am updating textfields value and calling
trigger function:
*// updating input field values
this.rangeSlider.noUiSlider.on('update', function (values, handle) {
var value = values[handle];
this.inputField.value = value;
$(this.inputField).triggerHandler('change');
}.bind(this));*

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697p4673700.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-23 Thread Martin Grigorov
Hi,

Try with: $('#theTextFieldsId').triggerHandler('change').
You need to trigger the JS event manually after changing the range(s).

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Feb 23, 2016 at 4:59 PM, Radovan Račák 
wrote:

> Hello dear friends,
>
> I would like to ask you how to resolve my little problem. I have problem to
> handle Ajax event onChange or onInput when I want to change TextField's
> value by Javascript.
>
> Let me describe my situation:
> I have one TextField - I added this TextField in Wicket and added to it
> *AjaxFormComponentUpdatingBehavior("change")*. Everythings works fine when
> I
> manually write something to the textfield - Ajax event change is invoked.
> But I am coding very customized Input Range Slider, so I created my custom
> implementation in Javascript. So, when I move with slider, TextField is
> editing but my Ajax event in Java is no invoked when I change textfields
> value in this way.
> I tried another ajax events and behaviors in Wicket, but nothing is
> working...
>
> How can I invoke this Ajax event manually by Javascript?
> Thank you very much
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697.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: Handle Ajax event onChange or onInput by changing TextField with Javascript

2016-02-23 Thread Ernesto Reinaldo Barreiro
http://api.jquery.com/trigger/ ?

On Tue, Feb 23, 2016 at 4:59 PM, Radovan Račák 
wrote:

> Hello dear friends,
>
> I would like to ask you how to resolve my little problem. I have problem to
> handle Ajax event onChange or onInput when I want to change TextField's
> value by Javascript.
>
> Let me describe my situation:
> I have one TextField - I added this TextField in Wicket and added to it
> *AjaxFormComponentUpdatingBehavior("change")*. Everythings works fine when
> I
> manually write something to the textfield - Ajax event change is invoked.
> But I am coding very customized Input Range Slider, so I created my custom
> implementation in Javascript. So, when I move with slider, TextField is
> editing but my Ajax event in Java is no invoked when I change textfields
> value in this way.
> I tried another ajax events and behaviors in Wicket, but nothing is
> working...
>
> How can I invoke this Ajax event manually by Javascript?
> Thank you very much
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Handle-Ajax-event-onChange-or-onInput-by-changing-TextField-with-Javascript-tp4673697.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro