Re: Frontend Frameworks / Libraries

2015-09-18 Thread Harry Zhou
Don't know if this has been mentioned, but when Angular.js makes XHR request via $http, it does NOT by default set the header, which Tapestry checks to do request.isXHR(). See http://stackoverflow.com/questions/18168836/angularjs-resource-not-sending-x-requested-with Therefore it appears to be ne

Re: Frontend Frameworks / Libraries

2015-09-16 Thread françois facon
2015-09-15 0:31 GMT+02:00 Thiago H de Paula Figueiredo : > On Mon, 14 Sep 2015 14:21:46 -0300, Kalle Korhonen < > kalle.o.korho...@gmail.com> wrote: > > React and Ember Fastboot solve the SEO problem by rendering the first load >> on server, but Angular doesn't offer the same functionality nativel

Re: Frontend Frameworks / Libraries

2015-09-15 Thread Arve Klev
Hi, sorry, I have no experience with SEO. - Arve 2015-09-14 15:20 GMT+02:00 George Christman : > Very nice Arve, do you have any experience making these angular pages SEO > friendly? > > On Sun, Sep 6, 2015 at 11:08 AM, Arve Klev wrote: > > > Hello. > > Yes it is VERY easy to to use AngularJS (

Re: Frontend Frameworks / Libraries

2015-09-15 Thread Harry Zhou
Ah, thanks so much for the tip! I did embed the files, which really bloated up the app. Will try out the duo app approach; makes lots of sense. On Tue, Sep 15, 2015 at 1:52 PM, Kalle Korhonen wrote: > On Tue, Sep 15, 2015 at 9:34 AM, Harry Zhou wrote: > > > Would appreciate your advice on how t

Re: Frontend Frameworks / Libraries

2015-09-15 Thread Kalle Korhonen
On Tue, Sep 15, 2015 at 9:34 AM, Harry Zhou wrote: > Would appreciate your advice on how to setup Ember for T5.4. I imagine the > way would be defining an init module that requires via shim ember (also > ember-data, etc.) and @import that module on the Tapestry page. But what is > the most logica

Re: Frontend Frameworks / Libraries

2015-09-15 Thread Harry Zhou
Hi Kalle, Would appreciate your advice on how to setup Ember for T5.4. I imagine the way would be defining an init module that requires via shim ember (also ember-data, etc.) and @import that module on the Tapestry page. But what is the most logical place to put custom ember code, and how best to

Re: Frontend Frameworks / Libraries

2015-09-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Sep 2015 14:21:46 -0300, Kalle Korhonen wrote: React and Ember Fastboot solve the SEO problem by rendering the first load on server, but Angular doesn't offer the same functionality natively. There's https://prerender.io/ though, but it's another component you need to deploy. I

Re: Frontend Frameworks / Libraries

2015-09-14 Thread Kalle Korhonen
Oh, must add that hacking together a pre-rendering PhantomJS engine with T5 is relatively simple. I've implemented one for rendering thumbnails of SVG graphs, complete with PhantomJS auto-install and a dedicated thread pool; it worked great for the purpose. Kalle On Mon, Sep 14, 2015 at 10:21 AM,

Re: Frontend Frameworks / Libraries

2015-09-14 Thread françois facon
It's a powerful feature. The best of both worlds! François 2015-09-14 19:21 GMT+02:00 Kalle Korhonen : > React and Ember Fastboot solve the SEO problem by rendering the first load > on server, but Angular doesn't offer the same functionality natively. > There's https://prerender.io/ though, but

Re: Frontend Frameworks / Libraries

2015-09-14 Thread Kalle Korhonen
React and Ember Fastboot solve the SEO problem by rendering the first load on server, but Angular doesn't offer the same functionality natively. There's https://prerender.io/ though, but it's another component you need to deploy. Kalle On Mon, Sep 14, 2015 at 6:20 AM, George Christman wrote: >

Re: Frontend Frameworks / Libraries

2015-09-14 Thread George Christman
Very nice Arve, do you have any experience making these angular pages SEO friendly? On Sun, Sep 6, 2015 at 11:08 AM, Arve Klev wrote: > Hello. > Yes it is VERY easy to to use AngularJS (or eg. Highchart/Raphael/JChart) > with Tapestry 5.4. > Use Tapestry as usual and let different pages do what

Re: Frontend Frameworks / Libraries

2015-09-06 Thread Arve Klev
Hello. Yes it is VERY easy to to use AngularJS (or eg. Highchart/Raphael/JChart) with Tapestry 5.4. Use Tapestry as usual and let different pages do what you want (eg. one page as an AngularJS SPA). Every page use the same Layout component. 1. Place angular.js in src/main/resources/META-INF/modul

Re: Frontend Frameworks / Libraries

2015-08-10 Thread Taha Siddiqi
Well my way is to spend sometime on anything I find interesting... (Usually Saturday mornings) That is how I found tapestry and now Clojure/clojusescript, mongo, Titan graphs etc... So exciting !! Sent from my iPhone > On Aug 10, 2015, at 9:01 PM, George Christman wrote: > > I think the ch

Re: Frontend Frameworks / Libraries

2015-08-10 Thread George Christman
I think the choices these days are starting to become very overwhelming, I wish there was a magic bullet eliminating all these choices. I'd like to pick a new frontend framework, but with all the advise from the different sources, I don't think I know enough anymore to make an educated decision. O

Re: Frontend Frameworks / Libraries

2015-08-08 Thread Taha Siddiqi
For me it is om(or reactjs). I am currently in the process of replacing JavaScript in one of my JavaScript intense Tapestry project with om/ClojureScript. Sent from my iPhone > On Aug 8, 2015, at 11:41 AM, Kalle Korhonen > wrote: > >> On Fri, Aug 7, 2015 at 3:40 PM, françois facon wrote:

Re: Frontend Frameworks / Libraries

2015-08-07 Thread Kalle Korhonen
On Fri, Aug 7, 2015 at 3:40 PM, françois facon wrote: > About Ember, I looking for an equivalent of > https://docs.angularjs.org/tutorial. > I haven't found anything quite as comprehensive for Ember. One issue with Ember is that many of these tutorials are outdated because its changed so fast. T

Re: Frontend Frameworks / Libraries

2015-08-07 Thread françois facon
Hi George, I like to use a Tapestry page to bootstrap a AngularJs application. For instance https://github.com/ffacon/tapestry5-angular-demo/blob/master/src/main/java/dev/openshift/tapestry/angular/pages/Index.java serve a RequireJS configuration file and use page/ event to serve data to the spa.

Re: Frontend Frameworks / Libraries

2015-08-07 Thread Kalle Korhonen
It's pretty easy. Don't build component event requests but just send REST(-like) requests that are either processed by plain Tapestry pages and its EventContext. If you are building a more comprehensive spa then consider pairing the client with JAX-WS resource backend (i.e. http://www.tynamo.org/ta

Re: Frontend Frameworks / Libraries

2015-08-07 Thread Bob Harner
Yes a page/event. As long as the URL looks like a tapestry event request, you can handle the request in an event handler method within the page's Java class, and return JSON. On Fri, Aug 7, 2015 at 2:40 PM, George Christman wrote: > Hi guys, I've been playing around with AngularJS and backbone r