I also use Sencha, not Touch, but Ext Js. I have done the following:
Play! The server contains my logic and provides me with useful URLs:
POST /user/create AccountController.createUser GET /user/userid AccountController.getUser
With Sencha, I defined a Store
that retrieves JSON
data from a specific URL, this URL points to my game! URLs
In my method on Play, I retrieve the model from my database and simply return the JSON that Sencha will parse / read as:
Query userQry = JPA.em().createQuery("select * from Account"); List<Article> accounts= userQry .getResultList(); renderJSON(accounts);
Greetings
source share