Hi,
On Tue, Apr 28, 2020 at 9:54 AM kyc <[email protected]> wrote:
> I am using wicket 7.14
>
Try to upgrade to 7.16.
>
> The following setObject is not called if I select the item from the list
> showing from AutoCompleteTextField.
> However, it will be called if I type something on the textfield. I tried
>
If it works when you type something but it doesn't when you select an item
then it looks like a JavaScript error.
Check the browser Dev Tools Console for JS error and Network tab for Ajax
request.
> the wicket example with form surrounding the input tag and add
> AjaxFormSubmitBehavior which was still not working. I also tried the blur
> event suggested by some forum which also not work. I was stuck on the
> problem for many days.
>
>
> final IModel<String> model = new IModel<String>()
> {
> private String value = null;
>
> @Override
> public String getObject()
> {
> return value;
> }
>
> @Override
> public void setObject(String object)
> {
> value = object;
> }
>
> @Override
> public void detach()
> {
> }
> };
>
>
> final AutoCompleteTextField<String> sampleField = new
> AutoCompleteTextField<String>("sample", model, String.class, settings){
> private static final long
> serialVersionUID = -2129392693264844597L;
>
> ......
> }
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>