Hoover, William <mailto:[EMAIL PROTECTED]> wrote:
> or you can go with this solution:
> http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html

Hi William,
I have tried it but not successfully. I can select a choice from the
choicelist. But if I want to save it I get a

java.lang.IllegalArgumentException: argument type mismatch
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(Proper
tyResolver.java:1093)
     at
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(Pro
pertyResolver.java:583)
     at
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:
137)
     at
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyMode
l.java:164)
     at org.apache.wicket.Component.setModelObject(Component.java:2889)

This is because the model object seems to be a String. Do I have to use a
special IModel for CHOICE?
Where is the findChoice methode invoked? Or do I have to invoke it within a
behavior?

Regards, Kai


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to