Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1.1
-
Fix Version/s: None
-
Component/s: Scaffolding
-
Labels:None
Description
The ScaffoldingViewResolver#loadView() method first looks for viewName being resolved by super class (GrailsViewResolver), and then directly gets the controller action name to generate the corresponding view.
There is no second try for viewName being a scaffolded view to be generated and then rendered.
The result is that when a scaffolded 'editAsNew' action tries to render the scaffolded 'create' view, the following error is produced:
ERROR [12869346@qtp0-0] (ScaffoldingViewResolver.java:101) - Error generating scaffolded view [/utilisateur/create]: C:\grails-1.1.1\src\grails\templates\scaffolding\editAsNew.gsp (File not found)
java.io.FileNotFoundException: C:\grails-1.1.1\src\grails\templates\scaffolding\editAsNew.gsp (File not found)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
This error is only produced when the scaffolded view (the 'create' view, in the above example) has not been rendered yet (by the 'create' action, for example).
Please attach an example that reproduces the problem