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
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 )
{
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
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
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
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