Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Scaffolding
-
Labels:None
-
Environment:Windows 7 x64 12GB RAM, STS 2.81
Description
Created a new project using 2.0.0, Created 2 domain classes User and Profile including controllers which contain
static scaffold = true
run-app deploys, and landing page displays 2 fully qualified controller names.
then click on user controller link which goes to http://localhost:8080/xxxx/user/index , instantly get 404 with console displaying:
| Error 2011-12-19 23:16:09,034 ["http-bio-8080"-exec-10] ERROR view.ScaffoldingViewResolver - Error generating scaffolded view [/user/index]: D:\Java\grails-2.0.0\grails-resources\src\grails\templates\scaffolding\index.gsp (The system cannot find the path specified) Message: D:\Java\grails-2.0.0\grails-resources\src\grails\templates\scaffolding\index.gsp (The system cannot find the path specified) |
Should the scaffolding not implement index to take me to the list view? Going directly to http://localhost:8080/xxxx/user/list does work.
So I then defined
def index =
{ redirect(action: "list", params: params) }which made no difference and also tried it as a method instead of closure. So I copied the domain and controller classes verbatim to a grails 1.3.7 project and this issue does not occur.
Issue Links
- duplicates
-
GRAILS-8519
Scaffolding links from default landing page appear broken
-
Does the problem only occur when you run the app from within STS?