Announcement Announcement Module
No announcement yet.
Is it possible to change the location of menu.jspx? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to change the location of menu.jspx?

    I am using the controllers created by Spring Roo as an 'administration section' of my website, with public area of the site being written by hand.

    As such I am trying to keep all the administration views in separate folder, ie:

    I achieved this by executing controller all then manually moving files as needed, including menu.jspx. However Roo is not aware of the new location of menu.jspx and continues to create and update the file located in WEB-INF/views/menu.jspx instead of WEB-INF/views/admin/data/menu.jspx

    For example, if I execute the following command Roo will update the wrong menu.jspx even though it creates the other views in the subfolder I specify:
    ~.model.UserDirect roo> controller scaffold --class --entity ~.model.UserDirect --path admin/data/userdirects
    Created SRC_MAIN_JAVA/example/web/data
    Created SRC_MAIN_JAVA/example/web/data/
    Created SRC_MAIN_JAVA/example/web/data/UserDirectController_Roo_Controller.aj
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/list.jspx
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/views.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/show.jspx
    Managed SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/views.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/create.jspx
    Created SRC_MAIN_WEBAPP/WEB-INF/views/menu.jspx
    Managed SRC_MAIN_WEBAPP/WEB-INF/i18n/
    Managed SRC_MAIN_WEBAPP/WEB-INF/views/menu.jspx
    Managed SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/views.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/update.jspx
    Managed SRC_MAIN_WEBAPP/WEB-INF/views/admin/data/userdirects/views.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/i18n/
    Managed SRC_MAIN_WEBAPP/WEB-INF/views/menu.jspx

    Is there any way to tell Roo to create and update menu.jspx in a different location?