| Author |
Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering
|
Dag Nygaard
Greenhorn
Joined: Apr 16, 2009
Posts: 5
|
|
Where are the temporary files located? While trying to set up usage of a Ajax call I get the following dump:
...
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Could not parse script [home_foo_workspace_FooManager_grails_app_views_fooValues__createForm_gsp]: startup failed, home_foo_workspace_FooManager_grails_app_views_fooValues__createForm_gsp: 32: Unexpected node type: EXPR found when expecting type: LABELED_ARG at line: 32 column: 257. File: home_rdml_workspace_ConfigManager_grails_app_views_tagValues__createForm_gsphome_foo_workspace_FooManager_grails_app_views_fooValues__createForm_gsp
...
My _createForm.gsp contains:
<g:formRemote name="createForm" url="[controller:'fooValues', action='create']" update="createFooValues">
My controller, FooValuesController , contains:
render(template:'createForm',model:[fooValuesInstance:fooValuesInstance])
The gsp from where the remote is called has this code:
.....</g:form>
<div id="createFooValues">
<g:render template="/fooValues/createForm"></g:render>
</div>
I expect there is something in the _createForm.gsp that fails, but line 32 contains just "</table>", so there must be some compiled grails/java version of this gsp.
Dag
|
 |
Dave Klein
author
Ranch Hand
Joined: Aug 29, 2007
Posts: 77
|
|
If you append ?showSource to your initial request you will get a page showing the compiled page.
If you post the contents of the template, perhaps someone here could help figure out what's causing that error.
Thanks,
Dave
|
Author of Grails: A Quick-Start Guide
|
 |
 |
|
|
subject: Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering
|
|
|