Announcement Announcement Module
Collapse
No announcement yet.
Roo generated view names not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo generated view names not working

    For security mapping, I'm trying to locate a bunch of controllers under "/admin", e.g. "/admin/users/list". To make this work, it seems I have to:
    1. Modify my controller classes annotations, e.g. @RequestMapping("/admin/users") and @RooWebScaffold(path="/admin/users")
    2. Modify the generated view jspx files to add the "/admin" prefix in various path attributes.
    3. Modify the generated views.xml files to add the "/admin" prefix to definition name attributes, e.g. "<definition extends="default" name="/admin/users/list">"

    When Roo then does some round-tripping, it modifies the views.xml files and adds new definition elements that match the old ones except the name attributes are relative URIs, e.g. "name="admin/users/list"" These definitions don't work -- they result in view resolution errors.

    I'm using STS 2.8.1. This is all very new to me, so I'm sure I'm missing some very obvious things.

    THanks in advance!

    Wike
Working...
X