AutoCompleteTextField Problem Submitting

2010-05-12 Thread Sebastian Gabriel
Hello, I have an AutoCompleteTextField which works just fine. But when I select any of the given values from the list the validator tells me : xxx is not a valid value... perhaps you have any idea what I can do. Code: private AutoCompleteTextFieldSubject subject = new

Re: AutoCompleteTextField Problem Submitting

2010-05-12 Thread Zilvinas Vilutis
I had the same problem, its something related to converters or how your text value is converted to ( in your case ) Subject - and as there is no converter for that - it is just failing. What I've done is set the model to null and added a method getChoice which does the conversion. This is not

Re: AutoCompleteTextField Problem Submitting

2010-05-12 Thread Sebastian Gabriel
Thanks for your fast answer. I have a question about your solution. You say setting the model to null and adding a getChoice method would solve the problem. This means that I set the AutoCompleteTextField type to String and the String in the AutoCompleteTextField has to be unique in order to

Re: AutoCompleteTextField Problem Submitting

2010-05-12 Thread Zilvinas Vilutis
Wait, I lied a little :) I use new ModelType( null ), so no value is being set to model object. Actually I've ported the impl of AbstractAutoCompleteTextField as described in https://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html so and use the findChoice method for selected

AutoCompleteTextField problem

2007-12-05 Thread dariusz.holda
(); dropDown.setModelObject(name); target.addComponent(form); } }); dropDown and acTextField are added to the form. -- View this message in context: http://www.nabble.com/AutoCompleteTextField-problem

RE: AutoCompleteTextField problem

2007-12-05 Thread Holda, Dariusz
Onblur is not the thing I want but I've tried it and it doesn't work. -Original Message- From: Dipu Seminlal [mailto:[EMAIL PROTECTED] Sent: 05 December 2007 12:10 To: users@wicket.apache.org Subject: Re: AutoCompleteTextField problem can you try changing the event from onchange

RE: AutoCompleteTextField problem

2007-12-05 Thread Holda, Dariusz
:[EMAIL PROTECTED] Sent: 05 December 2007 12:10 To: users@wicket.apache.org Subject: Re: AutoCompleteTextField problem can you try changing the event from onchange to onblur On Dec 5, 2007 12:08 PM, dariusz.holda [EMAIL PROTECTED] wrote: Hi, I have AutoCompleteTextField

Re: AutoCompleteTextField problem

2007-12-05 Thread Dipu Seminlal
PROTECTED] Sent: 05 December 2007 12:10 To: users@wicket.apache.org Subject: Re: AutoCompleteTextField problem can you try changing the event from onchange to onblur On Dec 5, 2007 12:08 PM, dariusz.holda [EMAIL PROTECTED] wrote: Hi, I have AutoCompleteTextField