I don't know too much about Angular, but one of the things to be overcome when considering any framework like that for use with Stripes is the set of inherent assumptions Stripes makes about forms. Specifically, Stripes validation needs to know about the "source page" and also the "fields present" information. Normally it gets that from its own form tag, but if you're using a JavaScript templating system to build pages (and forms) on the client then there's a problem.
The approach I'm taking (again, not Angular, but still with client-generated forms) is to provide that via a couple of hacked new tags, one to generate the "source page" string and one for the "fields present" (so that, for example, un-checked checkbox fields can be correctly set by Stripes). Those get sent over in the JSON when a form is to be shown, and then the client templates just drop them in hidden input fields so that Stripes will be none the wiser when the POST happens. On Mon, Sep 17, 2012 at 9:36 AM, Joe Adams <joe.ad...@vividseats.com> wrote: > Hi Adam, > > We haven't really started with Angular and I'm not sure if I understand the > question. > > I guess the datasource would just be the web app. We would just write > action classes to answer the AJAX requests. You can also just print out > JSON variables right on your jsp. In other words, you can write "var > myData=${actionBean.data}; " on the script section of your page. > > Joe > ________________________________ > From: Adam Stokar [ajsto...@gmail.com] > Sent: Monday, September 17, 2012 8:58 AM > To: Stripes Users List > Subject: Re: [Stripes-users] Stripes and Angular.js > > Hi Joe, > > If you don't mind telling me, what type of datasource are you using with > Angular.js? I just watched the video and it seems like a really great > framework to build a single-page js app. > > Thanks, > > Adam > > On Mon, Sep 17, 2012 at 9:47 AM, Joe Adams <joe.ad...@vividseats.com> wrote: >> >> Thanks for the info, everyone! >> >> We'll try out the non-strict tld. >> >> Joe >> ________________________________ >> From: Mike McNally [emmecin...@gmail.com] >> Sent: Friday, September 14, 2012 10:42 AM >> To: Stripes Users List >> Subject: Re: [Stripes-users] Stripes and Angular.js >> >> You can use arbitrary attributes in Stripes by using the non-strict tld. >> >> On Sep 14, 2012 10:06 AM, "Joe Adams" <joe.ad...@vividseats.com> wrote: >>> >>> Hi, >>> >>> We were interested in using Angular.js. However, this might be a problem >>> because Angular puts attributes in your html and Stripes JSP tags don't >>> really allow any custom attributes in your html tags. Has anyone found a >>> way to use Stripes with Angular or another library that uses custom html >>> attributes? >>> >>> Has anyone wrote a good extension to Stripes tags that allows the use of >>> custom attributes in the tags? >>> >>> Thanks, >>> Joe >>> >>> >>> ------------------------------------------------------------------------------ >>> Got visibility? >>> Most devs has no idea what their production app looks like. >>> Find out how fast your code is with AppDynamics Lite. >>> http://ad.doubleclick.net/clk;262219671;13503038;y? >>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html >>> _______________________________________________ >>> Stripes-users mailing list >>> Stripes-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >>> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Stripes-users mailing list >> Stripes-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > -- Turtle, turtle, on the ground, Pink and shiny, turn around. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users