• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring roo integration with front end frameworks

 
Ashley Riot
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When developing applications using spring roo, is it associated with a specific front-end technology, or is it possible to change the front-end technology according to our needs. To be more specific, I want to use it with Flex.
 
Ken Rimple
author
Ranch Hand
Posts: 63
Mac OS X Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Flex add-on has been in limbo for a long time. It is not lart of the regular distribution, and though it had good aims, it has noot been maintained.

I would consider using Spring Roo for the back tier of the app, installing mvc, and then installing Spring Flex Integration manually.

For other front ends, Roo 1.2.2 works with JSF and with GWT, using the web jsf setup or web gwt setup commands, but I have no experience practically speaking with either of those and Roo, beyond researching them for the book.

If you are doing mobile web apps, consider jQuery Mobile with Spring MVC and using @RooJson (json setup) to add the json encoders to the entity or a dto. Then you can write Spring MVC to expose the JSON string as a result using:

@RequestMapping(...)
public @ResponseBody String doSomething(..) {
...
Results.toJson... (i forget the method name Roo puts in there but once you annotat a Java class with @RooJson it will create an ITD (file ending in .aj) loke Foo_Roo_Json.aj with methods to encode/decode a single instance and a list.

You can also submit JSON to the controller using a String parameter and @RequestBody annotating that parameter.

Ken
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic