[aerogear-dev] Aerogear Forge Plugin

Vineet Reynolds Pereira vpereira at redhat.com
Tue Feb 19 02:45:47 EST 2013



----- Original Message -----
> From: "Burr Sutter" <bsutter at redhat.com>
> To: "AeroGear Developer Mailing List" <aerogear-dev at lists.jboss.org>
> Cc: "Vineet Reynolds Pereira" <vpereira at redhat.com>, "Lincoln Baxter, III" <lincolnbaxter at gmail.com>, "Koen Aers"
> <koen.aers at jboss.com>
> Sent: Tuesday, February 19, 2013 6:02:00 AM
> Subject: Re: [aerogear-dev] Aerogear Forge Plugin
> 
> I upgraded my forge runtime within JBDS and it all ran successfully!
> 
> 
> A couple of gotchas:
> - jquery.min.js causes Eclipse to produce errors - perhaps we the
> Forge Plugin for Eclipse could turn of JS validation in this
> situation?

This is a bit frustrating because minified versions of libraries always trip up the Eclipse JS validator.
The development versions do not cause this problem, hence the reason including angular.js instead of angular.min.js.
I have to revisit this though, since having a single version alone in different contexts (development/production) is bound to raise eyebrows.
Perhaps, we could borrow something from yeoman here.

I'd like to hear the AG team's take on this.

> - the validation error messages were not visible to the end-user -
> so, the StoreOrder submit basically does nothing (from the end-user
> perspective) when he submits an amount over 50. The error shows up
> on the server console.

Building in 'robust' error handling into the scaffold at the client and the server is still in the works. I hope to have nailed this down by next week. 
For now, the AngularJS scaffold does some client-side validation, while preventing the form submit [1]; note the disabled save button in the screenshots.
The aerogear scaffold generator would need to merge the changes from the plain angular one, to have this capability.

The REST resources (and the error handling protocol) are however a different thing to tackle, and this is what needs nailing down.

[1]: http://imgur.com/a/ucNcU

P.S. The plain AngularJS (no AG) generated app is available here: https://github.com/VineetReynolds/scaffold-tester

> 
> 
> Overall, this is really cool stuff! Vineet & Sebastian - fantastic
> work in a very short timeframe.
> 
> 
> I hope to have pieces of this in several demos during the Red Hat
> Summit in June. :-)
> 
> 
> 
> On Feb 18, 2013, at 6:58 PM, Burr Sutter wrote:
> 
> 
> 
> 
> Awesome news...but for those people with JBDS6
> 
> Attempting to use the Forge in JBDS6
> 
> ***ERROR*** Exception encountered: Could not install plugin
> [org.jboss.forge.scaffold.html5.plugin-scaffold-html5] because it
> references Forge API version [1.2.0.Final] which may not be
> compatible with my current version [1.1.2.Final]. Please consider
> upgrading forge, by typing 'forge update'. Otherwise, try installing
> an older version of the plugin. (type "set VERBOSE true" to enable
> stack traces)
> 
> 
> 
> 
> 
> On Feb 15, 2013, at 11:15 AM, Sebastien Blanc wrote:
> 
> 
> Hi all !
> I'm pleased to announce that the first version of the Aerogear
> Scaffold Plugin for forge is available !
> It's still an alpha but thanks to the excellent work and help from
> Vineet we have a working plugin :
> 
> 
> - CRUD Scaffolding based on your entities.
> - One-to-one , many-to-one relation supported.
> - AngularJS and bootstrap responsive based.
> - Aerogear Pipe and Store used.
> 
> 
> There is still a lot to do but you can already play with it, a
> quickstart is available here and you should be able to create your
> first Aerogear App in 5 minutes ;)
> https://gist.github.com/sebastienblanc/4961324
> 
> 
> An example of a generated application can also be found here :
> https://github.com/sebastienblanc/scaffoldtester , please review the
> generated code (at least the JS and HTML) and report it to me and I
> will update the templates accordingly.
> 
> 
> Next steps are :
> - Integrate Search feature (using the DataStore filter facilities)
> - Integrate Aerogear Pagination (although generic pagination is
> present now)
> - Integrate jQueryMobile (will probably be another plugin)
> 
> 
> Enjoy !
> 
> 
> Seb
> 
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> 


More information about the aerogear-dev mailing list