Announcement Announcement Module
Collapse
No announcement yet.
Advanced add-on custom data in ITD Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Advanced add-on custom data in ITD

    Hello,

    I am creating an advanced Spring Roo add-on and I need to place inside the created ITD something like:

    Code:
    declare precedence: X, Y;
    I have tried to append custom data, using <code>append</code> and something like:

    Code:
    CustomData customData = ((CustomDataBuilder) new CustomDataBuilder().put("name", "declare precedence: X, Y;")).build();
    but I get a NullPointerException.

    Can anybody help?

    Kind regards,
    Radu

  • #2
    Hello Radu,

    We had a similar problem in gvNIX.

    The best solution than we found was create the ITD directly from a text template included in the add-on. The fastest way is use regular expression to replace specific data before return the ITD content.

    Regards,
    Chema.

    Comment


    • #3
      Hi Chema,

      Thanks for the tip.
      I was already using such a template, but for different things on a basic add-on... But you're right, it should also work with the ITD.

      I am still wondering however if there isn't another possibility (like using the roo-provided methods).

      On a different note, great job with the gvNIX add-on! I've checked it out and it is quite impressive I must say.

      Best,
      Radu

      Comment

      Working...
      X