Results 1 to 2 of 2

Thread: Customize the generated view, keep changes

  1. #1
    Join Date
    Nov 2008
    Posts
    22

    Default Customize the generated view, keep changes

    I would like to have Roo maintain a view, but I want to add a simple customization inside the <page:show> section. If I later add a field to the entity, I would like Roo to add the field to the view, but I want to keep the customization in place inside the <page:show>.

    When I try this, it seems as if Roo is deleting the customization I made to the view. For example, I add a <span>hello</span> before </page:show>. Then I edit the controller and change the @RooWebScaffold annotation to set "delete=false". Roo updates the view and deletes the <span> section.

    Is there a way to keep the <span> section in place? If I put the <span> outside the <page:show> block, Roo does keep it in place, but the look of the UI is not what I want.

  2. #2
    Join Date
    Nov 2008
    Posts
    22

    Default

    I actually kind of resolved this. For anyone else interested, what I do is leave the generated <page:show> block as-is, and then I added a new <util: panel> below the <page:show> block to put custom code. The page looks nicely organized and Roo won't touch the customized code inside the <util: panel>

Posting Permissions

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