• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Spring roo integration with front end frameworks

Posts: 26
  • 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.
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:

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.

It's just a flesh wound! Or a tiny ad:
Enterprise-grade Excel API for Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!