I have tried the new RC2 feature "user-configured controller paths".
But it does not seem to work for paths with more than one element.
My commands are:
This is the generated view code:Code:controller scaffold --name ~.web.MyEntityController --entity ~.model.MyEntity --path admin/myentity controller scaffold --name ~.web.MyOtherEntityController --entity ~.model.MyOtherEntity --path /admin/myotherentity/
And this is the result:HTML Code:<li id="web_mvc_jsp_create_admin/myentity_menu_item"> <c:url value="/admin/myentity/form" var="web_mvc_jsp_create_admin/myentity_menu_item_url"/> <a href="${web_mvc_jsp_create_admin/myentity_menu_item_url}"> <spring:message arguments="MyEntity" code="global.menu.new"/> </a> </li> ... <li id="web_mvc_jsp_create_admin/myotherentity/_menu_item"> <c:url value="/admin/myotherentity//form" var="web_mvc_jsp_create_admin/myotherentity/_menu_item_url"/> <a href="${web_mvc_jsp_create_admin/myotherentity/_menu_item_url}"> <spring:message arguments="MyOtherEntity" code="global.menu.new"/> </a> </li>
It seems that the variable generation strategy produces invalid expressions.HTML Code:<a href="0">Create new MyEntity</a> ... <a href="NaN">Create new MyOtherEntity</a>
Cheers
Tim


Reply With Quote
