Announcement Announcement Module
Collapse
No announcement yet.
ApplicationConversionService Customization issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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();
                }
            };
        }

  • #2
    Is your push-ing converter method registered into installFormatters method ?

    Comment


    • #3
      Originally posted by mmartinez View Post
      Is your push-ing converter method registered into installFormatters method ?
      Yes, but I think you are talking about installLabelConverters. Because installFormatter was not in ITD. When I pushed everything, this method is also in java class now. Also, I did not have to add my method because it was already there , I did not change original method signature (please see my method)

      Comment


      • #4
        hi guys, any comments ?

        Comment

        Working...
        X