Chariot Training Classes

Training Courses

I run Chariot's training and mentoring services. We provide training in AngularJS, HTML5, Spring, Hibernate, Maven, Scala, and more.

Chariot Education Services


Chariot Emerging Tech

Learn about upcoming technologies and trends from my colleagues at Chariot Solutions.


Chariot Conferences


« Roo in Action welcomes Srini Penchikala | Main | Barcamp Philly 2010 - What a great show - and only $5 »

Roo Flex add-on is ALIVE!

It's always good to ask.  The Roo Flex add-on had been incompatible with Roo 1.1.0, and I've been working on the rich web chapter.  I had checked in with Jeremy Grelle, the lead on the Spring Flex Integration framework, and he let me know that he got everything going again with a recent snapshot.

If you'd like to play with the Roo Flex integration libraries before they come out in mid-December, here's what you need to do:

Download it!

Download the latest snapshot jar for the add-on here (can't guarantee that it will work the same way for you, but the one 11/20 worked fine for me).

Install the JAR

Put the add-on JAR in the roo-1.1.0/bundle directory

Install the snapshot repository

Edit your project's <repositories> section and add:

  Spring Portfolio Snapshot Repository

You have to do this for now, because the Blaze DS 4.0 integration libraries aren't checked in to a final repository.

Install it in your project

Now, just use the flex setup command to install the Flex scaffolding engine. When you want to build a scaffold, experiment with the flex remoting command to generate a scaffold View class for your Scaffold, such as:

flex remoting all --package ~.model

Running it

Just use mvn package jetty:run-exploded to kick off your application (Tomcat is fine but I am partial to Jetty for embedded maven runs). When the server starts, make sure to hit http://localhost:8080/appname/appname_scaffold.html to view your scaffolded UI.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (7)

cool. Anyways, i wanna share also a spoon-feed tutorial on Spring MVC

and add step-by-step Hibernate JPA capabilities tutorial to it:

hope it will help people!

November 23, 2010 | Unregistered Commenterpaul

Something wrong is with Roo Flex add-on jar file and STS 2.5.1 Release.

I just downloaded the latest version
copied to roo bundle folder, modyfied maven repositories settings but it freezes when I create new roo project.
Any idea why?

January 3, 2011 | Unregistered CommenterAdam

The big challenge is that the Flex Roo add-on and Roo are both under active development, and you're fetching a nightly build. Grab the one referenced above if you're using Roo 1.1.0 - I have to fetch a nighly build and see if it works with my git snapshot build of 1.1.1, but I was working on a chapter actively until just this week, so I've been keeping it stable.

What version of Roo are you using, what OS, etc?

January 5, 2011 | Registered CommenterKen Rimple

I am using roo-1.1.0.RELEASE together with sts-2.5.1.RELEASE on WindowXP (jdk1.6.0_14)
This same behaviour I found on Windows7.

January 5, 2011 | Unregistered CommenterAdam

Adam, check Roo 1.1.1 and STS 2.5.2. Maybe that combination will prove more stable for you. Also, you could delete the temporary Roo directories as outlined by my co-conspirator in Spring training at Chariot, Gordon Dickens, here.

January 14, 2011 | Registered CommenterKen Rimple

God..... Why is this stuff SO unreliable... I have not been able to get flex and roo to work since I became interested in it around november 2010. Are Spring Source ever gonna make an STS release that works with the flex roo addin. I just get the same issue every time and configuration I try 'flex setup' and it then just freezes. It looks like a brilliant and theoretically very productive piece technology....but then productive should also be measured in terms of 'does it work'? If anybody has any fool proof ways of getting STS and Flex to play together nicely I'd love to know....

I know it's probably not a very popular thing to say but, Microsoft dev tools just work!

January 29, 2011 | Unregistered CommenterConrad Rowlands

I appreciate your comment on MS IDEs. I did a .NET 1.1 project about 5 years ago and that much is true - the IDE is generally rock solid. But there was nothing out there for 70% of the things we wanted to do beyond what Microsoft gave us. And if there was, the community was small. This was some years ago too, but I will take needing to understand complex code in an editor over losing choice if I can.

This is a different issue though. What we are waiting on is the Roo team and the Spring BlazeDS team catching up
with each other. I think, to be fair, that it is likely a matter of the Roo team having a very aggressive timeline, and the Flex add-on seems to be a bit behind them. I also understand the add-on architecture has been tweaked significantly between 1.0.2 and 1.1.x, which caused some breaks.

Jeremy recently stated on the forums that he has help from Adobe working on the Spring BlazeDS API and then the add-on. I hope they can get it going soon - I expect the IDE problems (it is Eclipse after all). For me it was more from book coverage - I had an RIA chapter and I have been waiting on Flex and GWT for a while. But I am putting that aside for now and focusing on all of the other great things coming out of the Roo project. We will document the current state in the book of both the GWT and Flex add-on projects but as we have deadlines the information will likely be somewhat incomplete.

I really want to see the option of a Flex-based UI in Roo. And I want the option of not using the scaffolding too. It would be awesome if you could say "flex shadow [entity]" and have it create and optionally manage a Flex Actionscript body double. And I want... [insert baby whine here]

We have a ruby on rails project here that used the Adobe AMF binary remoting format, and it was fast as hell. BlazeDS also used AMF so I think you would really see some killer apps with this combo. For the record, you can just manually install the Flex BlazeDS library on a Roo project today.

January 31, 2011 | Registered CommenterKen Rimple

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>