Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering  RSS feed

 
Dag Nygaard
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!