aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring roo integration with front end frameworks" Watch "Spring roo integration with front end frameworks" New topic
Author

Spring roo integration with front end frameworks

Ashley Riot
Greenhorn

Joined: Nov 16, 2011
Posts: 25
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

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:

@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


Ken Rimple
ken.rimple@gmail.com
Co-author, Manning Spring Roo in Action
I teach for Chariot Solutions (Spring, Maven, Hibernate, other courses). Schedule here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring roo integration with front end frameworks