This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring roo integration with front end frameworks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring roo integration with front end frameworks" Watch "Spring roo integration with front end frameworks" New topic

Spring roo integration with front end frameworks

Ashley Riot

Joined: Nov 16, 2011
Posts: 21
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
Ranch Hand

Joined: Jul 20, 2010
Posts: 63

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.


Ken Rimple
Co-author, Manning Spring Roo in Action
I teach for Chariot Solutions (Spring, Maven, Hibernate, other courses). Schedule here
jQuery in Action, 2nd edition
subject: Spring roo integration with front end frameworks
Similar Threads
JPA and Spring
Should Roo artifacts end at the SCM?
My questions for Ashish Sarin about Roo
Best reason
Are there any components of Spring that assist in building GUI's for web applications?