You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jchappelle <jc...@4redi.com> on 2013/09/03 06:28:08 UTC

AutoCompleteTextField ajax update problem

I am in the process of migrating our app from wicket 1.5.10 to 6.10.0. I have
a panel that uses an AutoCompleteTextField with an
AjaxFormComponentUpdatingBehavior("onchange") behavior attached. It works
fine the first time I type something and select it, but it does not fire the
onchange event after that. I'm adding the entire panel that contains the
AutoCompleteTextField to the AjaxRequestTarget. If I only add the label that
displays the selection, then it works. I know javascript event registration
changed in wicket 6 and I'm assuming it has something to do with that.

This worked in 1.5.10. I can post my quickstart or just my code since it is
a very small amount. I've seen other posts similar to this but I could not
find my exact use case.

Any help is greatly appreciated.

Thanks,

Josh



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: AutoCompleteTextField ajax update problem

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

You can use 6.11.0-SNAPSHOT from
http://wicket.apache.org/start/quickstart.html. It has all the needed data
in the generated pom.xml.


On Wed, Sep 4, 2013 at 6:11 AM, jchappelle <jc...@4redi.com> wrote:

> Thanks for your response Sven. The AutoCompleteTextField was part of a
> bigger
> component that was a homegrown tagging component. I ended up
> re-implementing
> it using wicket-select2 and it works now, even better I might add! However,
> I did have a similar problem on another panel where loading the
> AutoCompleteTextField via ajax did not work. I saw somewhere that bug has
> been fixed in the latest trunk. I couldn't figure out how to get the
> 6.11.0-SNAPSHOT to pull in through our nexus repository so I reverted back
> to 6.9.1 and it worked. I'll wait for the 6.11.0 release and see if that
> fixes it.
>
> Thanks a bunch!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176p4661182.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: AutoCompleteTextField ajax update problem

Posted by jchappelle <jc...@4redi.com>.
Thanks for your response Sven. The AutoCompleteTextField was part of a bigger
component that was a homegrown tagging component. I ended up re-implementing
it using wicket-select2 and it works now, even better I might add! However,
I did have a similar problem on another panel where loading the
AutoCompleteTextField via ajax did not work. I saw somewhere that bug has
been fixed in the latest trunk. I couldn't figure out how to get the
6.11.0-SNAPSHOT to pull in through our nexus repository so I reverted back
to 6.9.1 and it worked. I'll wait for the 6.11.0 release and see if that
fixes it.

Thanks a bunch!



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176p4661182.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: AutoCompleteTextField ajax update problem

Posted by Sven Meier <sv...@meiers.net>.
Possibly https://issues.apache.org/jira/browse/WICKET-5315 ?

Please try out with current trunk.

Sven

On 09/03/2013 06:28 AM, jchappelle wrote:
> I am in the process of migrating our app from wicket 1.5.10 to 6.10.0. I have
> a panel that uses an AutoCompleteTextField with an
> AjaxFormComponentUpdatingBehavior("onchange") behavior attached. It works
> fine the first time I type something and select it, but it does not fire the
> onchange event after that. I'm adding the entire panel that contains the
> AutoCompleteTextField to the AjaxRequestTarget. If I only add the label that
> displays the selection, then it works. I know javascript event registration
> changed in wicket 6 and I'm assuming it has something to do with that.
>
> This worked in 1.5.10. I can post my quickstart or just my code since it is
> a very small amount. I've seen other posts similar to this but I could not
> find my exact use case.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> Josh
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-ajax-update-problem-tp4661176.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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