Converter for interface

2011-02-04 Thread Jan Ferko
Hi, I wrote custom converter for entity class. convertToObject() works fine, but I have problem with convertToString(). Since i have different implementations for my entity (immutable and mutable version) I work with their common interface in my web layer and wicket seems not to recognize

Re: Converter for interface

2011-02-04 Thread Pedro Santos
You can override the the application converter locator to return your converter under the instanceof or Class#isAssignableFrom test. I believe Wicket default converter locator don't do so since it can be problematic in some cases. If the text field has the Integer type, you can't use an the