Announcement Announcement Module
No announcement yet.
How does ApplicationConversion Work in Roo generated Project? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does ApplicationConversion Work in Roo generated Project?

    Dear Sirs et Madames,
    I am new to Spring, and am still struggling to understand how/where ApplicationConversionServiceFactoryBean_Roo_Conver sionService.aj works on the resulting *.jspx forms. For example, when updating an entity where one of the fields of that entity is an object reference, on the ui the textfield forthat object reference will contain all the fields for that object (because the AppicationConversionService method for that object concatenates all the fields of the object delimited by a space e.g
    PHP Code:
            return new StringBuilder().append(subscription.getExpiryDate()).append(" ").append(subscription.getNextSwapDate()).toString(); 
    ). However where I get confused is at what point is the convert method called? What is the calling class? I would have thought the converter is an attribute of the <field:input /> tag, and that is how a converter is linked to the contents of a UI component, but I see no such attribute... So how exactly or when exactly is this converter called?

    Thanks in advance