-
Mar 14th, 2011, 03:09 AM
#1
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:
WEB-INF/views/admin/data
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 ~.web.data.UserDirectController --entity ~.model.UserDirect --path admin/data/userdirects
Created SRC_MAIN_JAVA/example/web/data
Created SRC_MAIN_JAVA/example/web/data/UserDirectController.java
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/application.properties
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/application.properties
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules