Re: Field value null on Submit after onUpdate()

2008-11-24 Thread kerim bey
I debuged some more and realized that only the TextInput ModelObject is null! Althougt it was not null after filling in a Value (call of onUpdate() of the TextInput) Pleas help me someone. This is driving me nuts. kerim bey wrote: Hi, Everyone! I wrote this Ajax Event Handler

Field value null on Submit after onUpdate()

2008-11-19 Thread kerim bey
Hi, Everyone! I wrot this Ajax Event Handler for a AutoCompleteTextField: @Override protected void onUpdate(AjaxRequestTarget target) { ChildObj co = (ChildObj)AutoCompleteTextField.findChoice(); if(null != co ) {

RE: Form model update with ajax using AutoCompleteTextField

2008-10-17 Thread kerim bey
or you can use this one- http://cwiki.apache.org/confluence/display/WICKET/Autocomplete+using+a+W icket+model First of all thanks for the answers! Have tried this one and it works fine! Just one problem: when there is a ModelObject set on first render the component I get an input like id:1

Re: Form model update with ajax using AutoCompleteTextField

2008-10-14 Thread kerim bey
Meanwhile I figured out that the getModelObject() of the AutoCompleteTextField allways gives me null. Also if I selected one choice. 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

Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread kerim bey
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

Re: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread kerim bey
Müller wrote: 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