I have used this before as a simple String model which works fine but with
other types i have some isues going on any help would be appreciated.


final AutoCompleteTextField<XYZ> something = new
AutoCompleteTextField<XYZ>("code", xYZTypeModel, renderer)

the options are displayed correctly selects fine too but

XYZ.getObject() call throws exception:

java.lang.ClassCastException: java.lang.String cannot be cast to XYZ

not sure how it is able to Set String in a XYZ type.

I am using below renderer 

IAutoCompleteRenderer<XYZ> renderer = new
                        private static final long serialVersionUID = 1L;
                        protected String getTextValue(XYZ object) 
                                return XYX.getDisplayText();


View this message in context: 
Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to