Hi,
Sorry for reopening old thread.
I'm having problems with boolean to String conversion.
In a Spring ROO Project, I've created new converter
Code:
static class BoolConverter implements Converter<Boolean, String> {
public String convert(Boolean bool) {
if(bool==true) return "Yes";
else return "No";
}
}
and registered it
Code:
registry.addConverter(new BoolConverter());
But It's not working. Other converters are working just fine.
Any ideas?
Is there difference between boolean primitive and Boolean for the Converter?