aspose file tools*
The moose likes Groovy and the fly likes Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering" Watch "Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where are the temporary files located? Need pointers for debugging failing Ajax call/rendering
 
Similar Threads
How to remove deafult layout from template
Dynamic form using ajax load call
[Grails] Add form elements with javascript
strange error on deploying bmp
link css style sheet