Results 1 to 4 of 4

Thread: ApplicationConversionService Customization issue

  1. #1
    Join Date
    Mar 2007
    Posts
    26

    Default 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. #2
    Join Date
    Jan 2010
    Location
    Mislata - Valencia - Spain
    Posts
    163

    Default

    Is your push-ing converter method registered into installFormatters method ?
    Mario Martínez Sánchez
    Project Manager & Software Architect
    --------------------------
    Disid Technologies S.L.
    http://www.disid.com
    --------------------------
    gvNIX
    http://gvnix.googlecode.com
    http://www.gvnix.org

  3. #3
    Join Date
    Mar 2007
    Posts
    26

    Default

    Quote 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)

  4. #4
    Join Date
    Mar 2007
    Posts
    26

    Default

    hi guys, any comments ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •