i also do it in convertInput(). So even if it should be the wrong place, it 
does work, and you are not alone with this solution ;)

On Monday 13 October 2008 15:40:22 kerim bey wrote:
> While debugging I noticed it is a string.
> That's why I'm iterating through the choice objects to get back the object
> represented by the string in the autocomplete and then call
> setModelObject() with the one that matches.
> I override convertInput() for this but maybe this is the wrong place?
>
> Ryan Gravener-3 wrote:
> > You can search the archives for the answer to this one. Essentially
> > the model object for autocomplete is just a string.
> >
> > On 10/13/08, kerim bey <[EMAIL PROTECTED]> wrote:
> >> Hi!
> >>
> >> I have problems with using an AutoCompleteText field.
> >> Loading the choice Objects works fine, but when I select an entry the
> >> ModelObject (using a CompoundPropertyModel) of the Form is not updated.
> >> Calling setModelObject() doesn't seem to have any effect.
> >>
> >> Using a DropDownChoice the same way works.
> >>
> >> What is missing?
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Form-model-update-with-ajax-using-AutoCompleteText
> >>Field-tp19954381p19954381.html Sent from the Wicket - User mailing list
> >> archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Ryan Gravener
> > http://twitter.com/ryangravener
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to