How do I return an Array from grails / jdo to Flex
Posted
by mswallace
on Stack Overflow
See other posts from Stack Overflow
or by mswallace
Published on 2010-06-13T00:19:59Z
Indexed on
2010/06/13
0:22 UTC
Read the original article
Hit count: 694
this seems really simple but I haven't gotten this to work. I am building my app with grails on google app engine. This pretty much requires you to use JDO.
I am making an HTTP call from flex to my app. The action that I am calling on the grails end looks like so
def returnShowsByDate = {
def query = persistenceManager.newQuery( Show )
def showInstanceList = query.execute()
return (List<Show>) showInstanceList
}
I have tried just returning "hello from grails" and that works just fine. I have alos tried the following
return showInstanceList
the JDO docs say the query.execute() returns a collection. Why I cant just return that to Flex I have no clue.
Any thoughts?
© Stack Overflow or respective owner