Hi,
I'm using AutoCompleteTextFiled with Wicket 1.4.9. My model is a POJO
that is specified as a generic:
searchTextField = new AutoCompleteTextField<SomePOJO>(...
Therefore I return an Iterator of such POJOs with:
protected Iterator<SomePOJO> getChoices(String input) {
I'm trying to customize the text displayed (which defaults to
SomePOJO.toString()) using a converter:
public IConverter getConverter(Class<?> type) {
System.err.println("Looking up converter for: " +
type.getCanonicalName());
if (SomePOJO.class.isAssignableFrom(type)) {
return new IConverter() { ...
However, wicket never calls the getConverter() method and simply uses
SomePOJO.toString() to retrieve the text for the choices. What am I
doing wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]