ApplicationConversionService Customization issue
Hi, I have problem customzing ApplicationConversionService. I moved <Entity>ToString method to Java class from ITD and changed from appending all entity attributes to just one (userid) as shown below. But still my Spring MVC view shows whole string with all the attributes.
I remember this used to work before. Is this Roo 1.2.3 bug ? I tried pushing in all ITDs in Java class. But still same issue. I have not made any changes in JSPX. I have changed populateEditForm method in the controller, so that the dropdown is populated with only user specific project entries and not all projects from db.
Code:
public Converter<Dream, String> getProjectToStringConverter() {
return new org.springframework.core.convert.converter.Converter<com.example.tasks.domain.Project, java.lang.String>() {
public String convert(Project project) {
return new StringBuilder().append(project.getTitle()).toString();
}
};
}