In our case, we have gone even further, we have completely removed Stripes
from AngularJS apps.
We have found to be easier to just go with plain JAX-RS services on the
server (in our case RESTEasy in JBoss AS).
I've also posted an article about how you can use Bean Validation with
JAX-RS at 
samaxes.com<http://www.samaxes.com/2013/01/beanvalidation-with-jaxrs-in-javaee6/>for
server input validations.

Best,

--
Samuel Santos
http://www.samaxes.com/


On Tue, Feb 19, 2013 at 5:08 PM, Marcus Kraßmann <m...@syn-online.de> wrote:

>  Am 19.02.2013 15:55, schrieb gshegosh:
>
> Let me ressurect this thread for a bit longer :-)
> Has any one of you successfully (or not) done some work with AngularJS
> together with Stripes? I'm especially interested in pairing Stripes
> validation with AngularJS' one and servicing form submissions (the
> source page attribute, etc.) -- maybe someone has already cleared the
> path and wouldn't mind sharing solutions?
>
>
> Here a short report about my first AngularJS experiences. Although I did
> not try to pair validation of Stripes and Angular, I'll write it down.
> Maybe it will bring back life into the discussion ;-)
>
> At the beginning of 2013, I decided to use AngularJS within an existing
> Stripes application for a customizable calendar management solution. The
> application allows customers to order special articles from different
> locations for a selectable date. For date selection the jQuery UI
> Datepicker is used. The new calendar management page should allow
> exceptions from the general rule "Order allowed from Monday till Friday".
>
> At fist I just build the JavaScript model for the calendar. Then I use a
> separate async http request for getting all existing exceptional dates from
> the backend. After putting them into the calendar controller, it
> "magically" renders itself the way I want it to do. By clicking calendar
> items, the state of these dates is inverted with every click. In the end,
> when the user clicks "submit", another async request is sent to Stripes
> with the new exceptional date list. The incoming JSON is validated by
> Stripes.
>
> IMHO AngularJS is a brilliant JS framework. As it already has built-in
> templating, I tend to go away from JSP tags and to use Angular's own way of
> doing templating. Stripes' remaining responsibility reduces more and more
> to...
>
>    - input validation
>    - calling of backend services
>    - delivery of html snippets for Angular's routing functionality
>    - security checks
>
> As AngularJS' $resource service allows accessing RESTful services, I fear
> that I will more and more move away from Stripes itself the more I learn
> about Angular and frameworks like Jersey. But it was again nice to see that
> Stripes was no showstopper when I started experiments with AngularJS -
> together with the stripes-dynattr.tld I had no trouble at all.
>
> Kind regards,
> Marcus
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to