You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dmitry Gusev <dm...@gmail.com> on 2013/05/21 14:56:53 UTC

Is there will be any Tapestry5 + AngularJS integration?

Hi,

just curious if there is any plans integrating AngularJS with tapestry5?

I remember Howard wrote something about writing some proof-of-concept
application:
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Now-hotness-at-SX-vs-5-4-td5720473.html#a5720928

Any news in this area?

-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Dmitry Gusev <dm...@gmail.com>.
Or they will stay completely independent forever :)

On Tue, May 21, 2013 at 6:53 PM, Dmitry Gusev <dm...@gmail.com>wrote:

> I don't have any ideas of integration, yet.
> I was actually asking to know if somebody has any ideas on providing
> better support for angularjs.
>
>
> On Tue, May 21, 2013 at 6:50 PM, Nomen Nomanum <ge...@outlook.com>wrote:
>
>> I don't understand. Do you mean we should compensate our Tap5 services,
>> components with AngularJS behavior or what, as built-in support?
>>
>> > From: dmitry.gusev@gmail.com
>> > Date: Tue, 21 May 2013 18:09:12 +0400
>> > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
>> > To: users@tapestry.apache.org
>> >
>> > On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum <getibicus@outlook.com
>> >wrote:
>> >
>> > > > To: users@tapestry.apache.org
>> > > > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
>> > > > Date: Tue, 21 May 2013 10:41:20 -0300
>> > > > From: thiagohp@gmail.com
>> > > >
>> > > > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <
>> dmitry.gusev@gmail.com
>> > > >
>> > > > wrote:
>> > > >
>> > > > > Hi,
>> > > >
>> > > > Hi!
>> > > >
>> > > >  Hi! ^^
>> > > >
>> > >  > just curious if there is any plans integrating AngularJS with
>> tapestry5?
>> > > >
>> > > > What do you mean by "integration" in this case?
>> > > >
>> > >
>> >
>> > Anything? :)
>> >
>> >
>> > > >  AngularJS can easily be implemented already into Tap5. What's your
>> > > concern about it?
>> > > >
>> > >
>> >
>> >
>> > AngularJS can be implemented in plain HTML, I know this.
>> >
>> > I was just hope maybe tapestry5 will provide some support for it...
>> >
>> > Some integration with components maybe... helpers, mixins, ajax and
>> zones,
>> > anything?
>> >
>> >
>> >
>> >
>> >
>> > >  > Thiago H. de Paula Figueiredo
>> > > >
>> > > >
>> ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > > For additional commands, e-mail: users-help@tapestry.apache.org
>> > > >
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > Dmitry Gusev
>> >
>> > AnjLab Team
>> > http://anjlab.com
>>
>>
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Kalle Korhonen <ka...@gmail.com>.
So.. what's the current best practice/front-runner for AngularJS
integration? I see several users, Michael Wyraz to name one, have tipped
their toes on AngularJS but I didn't find any sample sample apps, much less
definitive libraries on Github or elsewhere. There are several areas where
a small integration library would be able to help making them both work
together seamlessly.

Kalle


On Tue, May 21, 2013 at 7:10 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Tue, 21 May 2013 22:18:40 -0300, Howard Lewis Ship <hl...@gmail.com>
> wrote:
>
>  That's OK; that's the future direction of all web applications,
>>
>
> 1 year in the futre? 5? 10?
>
> I don't see that coming, at least not for most of webapps. Single page
> webapps are good for desktop-like stuff but awful for search engines, which
> are vital for public-facing stuff.
>
>  andsupporting that should be the principle goal going forward, even if it
>>
>> means that much of the T5 infrastructure (pages, components, server-side
>> state, etc.) becomes somewhat vestigial
>>
>
> As long as they still work as they (pages, components, etc) work as they
> do now, I see no problem in that. That's the most mature part of Tapestry,
> having gone through some major internal revisions already (page pool, page
> pool not used anymore, performance improvements) already. AJAX is one of
> the less mature parts and everything that improves that is a good thing
> IMHO.
>
>
>  I have some ideas for having a very well integrated api approach, that
>> would be on-par with pages and components. That will probably have to
>> wait for 5.5.  Basically, page-like objects that represent API end points
>> and
>> support injection, but lack the complexity of Tapestry pages.
>>
>
> What would be the improvements over a page without a template? I'm not
> familiar with this part of the Tapestry code.
>
> For these page-like objects: what about an 'endpoints' subpackage, as we
> have now for pages, using the same routing rules? The less new logic we add
> and the most we reuse, the better. Or put them in the 'pages' package and
> we just use an annotation to tell that specific class is an endpoint and
> not a full-blown page.
>
>
>  We'd still support live class reloading and maybe a bit of magic in terms
>> of how
>> incoming requests are routed, parsed to JSON or Java objects, and then
>> how responses are generated.
>>
>
> Live class reloading is a major selling point of Tapestry (maybe the
> biggest one) so it should be kept for pages, components, mixins and these
> new endpoint objects.
>
>
> --
> Thiago H. de Paula Figueiredo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 21 May 2013 22:18:40 -0300, Howard Lewis Ship <hl...@gmail.com>  
wrote:

> That's OK; that's the future direction of all web applications,

1 year in the futre? 5? 10?

I don't see that coming, at least not for most of webapps. Single page  
webapps are good for desktop-like stuff but awful for search engines,  
which are vital for public-facing stuff.

> andsupporting that should be the principle goal going forward, even if it
> means that much of the T5 infrastructure (pages, components, server-side
> state, etc.) becomes somewhat vestigial

As long as they still work as they (pages, components, etc) work as they  
do now, I see no problem in that. That's the most mature part of Tapestry,  
having gone through some major internal revisions already (page pool, page  
pool not used anymore, performance improvements) already. AJAX is one of  
the less mature parts and everything that improves that is a good thing  
IMHO.

> I have some ideas for having a very well integrated api approach, that
> would be on-par with pages and components. That will probably have to  
> wait for 5.5.  Basically, page-like objects that represent API end  
> points and
> support injection, but lack the complexity of Tapestry pages.

What would be the improvements over a page without a template? I'm not  
familiar with this part of the Tapestry code.

For these page-like objects: what about an 'endpoints' subpackage, as we  
have now for pages, using the same routing rules? The less new logic we  
add and the most we reuse, the better. Or put them in the 'pages' package  
and we just use an annotation to tell that specific class is an endpoint  
and not a full-blown page.

> We'd still support live class reloading and maybe a bit of magic in  
> terms of how
> incoming requests are routed, parsed to JSON or Java objects, and then  
> how responses are generated.

Live class reloading is a major selling point of Tapestry (maybe the  
biggest one) so it should be kept for pages, components, mixins and these  
new endpoint objects.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Howard Lewis Ship <hl...@gmail.com>.
Having a better story for creating an API accessible to the client browser
would help.

I have previously done some work where I've used Backbone to handle more
complex UIs than I can reasonably accomplish in Tapestry (using Zones and
FormFragments etc.). In the future, I'll likely use Angular for that
purpose.

Tapestry's asset pipeline is pretty great for Angular; however it is not
wrapped as AMD modules, so it must be loaded as libraries. Further, Angular
has a specific initialization phase, after that it is not possible to add
additional Angular modules. You'd likely have many ng-app tags on the page,
which is valid (but somewhat wasteful).

I think it is more likely that a T5/AngularJS app would have just a couple
of Tapestry pages to "provision" the application (maybe even just one) and
would operate from that point on in single-page mode, performing just
REST-ful API calls to the application, possibly via tapestry-resteasy.

That's OK; that's the future direction of all web applications, and
supporting that should be the principle goal going forward, even if it
means that much of the T5 infrastructure (pages, components, server-side
state, etc.) becomes somewhat vestigial   The most important parts of
Tapestry in a couple of years time will be the asset pipeline and the IoC
container.

I have some ideas for having a very well integrated api approach, that
would be on-par with pages and components. That will probably have to wait
for 5.5.  Basically, page-like objects that represent API end points and
support injection, but lack the complexity of Tapestry pages.  We'd still
support live class reloading and maybe a bit of magic in terms of how
incoming requests are routed, parsed to JSON or Java objects, and then how
responses are generated.  I just have a sketch of this today, and it is
likely that tapestry-resteasy already does most of it.



On Tue, May 21, 2013 at 4:10 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Tue, 21 May 2013 11:53:40 -0300, Dmitry Gusev <dm...@gmail.com>
> wrote:
>
>  I don't have any ideas of integration, yet.
>> I was actually asking to know if somebody has any ideas on providing
>> better support for angularjs.
>>
>
> What exactly is missing right now? I'm still struggling to understand what
> you're thinking. AngularJS is a JavaScript framework and you can use it in
> Tapestry applications right now in the same way you'd use with just static
> HTML (except for some AJAX stuff which is mostly covered already by
> returning JSONObject or JSONArray in an event handler).
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 21 May 2013 11:53:40 -0300, Dmitry Gusev <dm...@gmail.com>  
wrote:

> I don't have any ideas of integration, yet.
> I was actually asking to know if somebody has any ideas on providing  
> better support for angularjs.

What exactly is missing right now? I'm still struggling to understand what  
you're thinking. AngularJS is a JavaScript framework and you can use it in  
Tapestry applications right now in the same way you'd use with just static  
HTML (except for some AJAX stuff which is mostly covered already by  
returning JSONObject or JSONArray in an event handler).

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Dmitry Gusev <dm...@gmail.com>.
I don't have any ideas of integration, yet.
I was actually asking to know if somebody has any ideas on providing better
support for angularjs.

On Tue, May 21, 2013 at 6:50 PM, Nomen Nomanum <ge...@outlook.com>wrote:

> I don't understand. Do you mean we should compensate our Tap5 services,
> components with AngularJS behavior or what, as built-in support?
>
> > From: dmitry.gusev@gmail.com
> > Date: Tue, 21 May 2013 18:09:12 +0400
> > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> > To: users@tapestry.apache.org
> >
> > On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum <getibicus@outlook.com
> >wrote:
> >
> > > > To: users@tapestry.apache.org
> > > > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> > > > Date: Tue, 21 May 2013 10:41:20 -0300
> > > > From: thiagohp@gmail.com
> > > >
> > > > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <
> dmitry.gusev@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > Hi,
> > > >
> > > > Hi!
> > > >
> > > >  Hi! ^^
> > > >
> > >  > just curious if there is any plans integrating AngularJS with
> tapestry5?
> > > >
> > > > What do you mean by "integration" in this case?
> > > >
> > >
> >
> > Anything? :)
> >
> >
> > > >  AngularJS can easily be implemented already into Tap5. What's your
> > > concern about it?
> > > >
> > >
> >
> >
> > AngularJS can be implemented in plain HTML, I know this.
> >
> > I was just hope maybe tapestry5 will provide some support for it...
> >
> > Some integration with components maybe... helpers, mixins, ajax and
> zones,
> > anything?
> >
> >
> >
> >
> >
> > >  > Thiago H. de Paula Figueiredo
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
>
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

RE: Is there will be any Tapestry5 + AngularJS integration?

Posted by Nomen Nomanum <ge...@outlook.com>.
I don't understand. Do you mean we should compensate our Tap5 services, components with AngularJS behavior or what, as built-in support? 

> From: dmitry.gusev@gmail.com
> Date: Tue, 21 May 2013 18:09:12 +0400
> Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> To: users@tapestry.apache.org
> 
> On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum <ge...@outlook.com>wrote:
> 
> > > To: users@tapestry.apache.org
> > > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> > > Date: Tue, 21 May 2013 10:41:20 -0300
> > > From: thiagohp@gmail.com
> > >
> > > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <dmitry.gusev@gmail.com
> > >
> > > wrote:
> > >
> > > > Hi,
> > >
> > > Hi!
> > >
> > >  Hi! ^^
> > >
> >  > just curious if there is any plans integrating AngularJS with tapestry5?
> > >
> > > What do you mean by "integration" in this case?
> > >
> >
> 
> Anything? :)
> 
> 
> > >  AngularJS can easily be implemented already into Tap5. What's your
> > concern about it?
> > >
> >
> 
> 
> AngularJS can be implemented in plain HTML, I know this.
> 
> I was just hope maybe tapestry5 will provide some support for it...
> 
> Some integration with components maybe... helpers, mixins, ajax and zones,
> anything?
> 
> 
> 
> 
> 
> >  > Thiago H. de Paula Figueiredo
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> >
> >
> 
> 
> 
> -- 
> Dmitry Gusev
> 
> AnjLab Team
> http://anjlab.com
 		 	   		  

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 21 May 2013 11:09:12 -0300, Dmitry Gusev <dm...@gmail.com>  
wrote:

>> > What do you mean by "integration" in this case?
> Anything? :)

Please be more specific, otherwise you'll get very generic answers.. ;)

> AngularJS can be implemented in plain HTML, I know this.
> I was just hope maybe tapestry5 will provide some support for it...
> Some integration with components maybe... helpers, mixins, ajax and  
> zones, anything?

Please tell me if you disagree, I don't see any helper that could be  
useful. AJAX itself is already provided by JavaScript frameworks. Zones  
are all about updating parts of a page, so I don't see any relationship  
between them and AngularJS, which is mostly about keeping objects and HTML  
in sync (data binding). Tapestry already provides an easy away for  
returning JSON in AJAX requests.

As far as I can see, and I have never used AngularJS so I may be  
completely wrong, a Tapestry 5-AngularJS integration would do not much  
beyond including the required JavaScript files and maybe a mixin to tell  
"apply Angular JS to this HTML element". Tapestry 5 and AngularJS seem  
quite ortogonal to me.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Dmitry Gusev <dm...@gmail.com>.
On Tue, May 21, 2013 at 5:57 PM, Nomen Nomanum <ge...@outlook.com>wrote:

> > To: users@tapestry.apache.org
> > Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> > Date: Tue, 21 May 2013 10:41:20 -0300
> > From: thiagohp@gmail.com
> >
> > On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <dmitry.gusev@gmail.com
> >
> > wrote:
> >
> > > Hi,
> >
> > Hi!
> >
> >  Hi! ^^
> >
>  > just curious if there is any plans integrating AngularJS with tapestry5?
> >
> > What do you mean by "integration" in this case?
> >
>

Anything? :)


> >  AngularJS can easily be implemented already into Tap5. What's your
> concern about it?
> >
>


AngularJS can be implemented in plain HTML, I know this.

I was just hope maybe tapestry5 will provide some support for it...

Some integration with components maybe... helpers, mixins, ajax and zones,
anything?





>  > Thiago H. de Paula Figueiredo
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

RE: Is there will be any Tapestry5 + AngularJS integration?

Posted by Nomen Nomanum <ge...@outlook.com>.
> To: users@tapestry.apache.org
> Subject: Re: Is there will be any Tapestry5 + AngularJS integration?
> Date: Tue, 21 May 2013 10:41:20 -0300
> From: thiagohp@gmail.com
> 
> On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <dm...@gmail.com>  
> wrote:
> 
> > Hi,
> 
> Hi!
> 
>  Hi! ^^
>
 > just curious if there is any plans integrating AngularJS with tapestry5?
> 
> What do you mean by "integration" in this case?
> 
>  AngularJS can easily be implemented already into Tap5. What's your concern about it?
>  
> Thiago H. de Paula Figueiredo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
 		 	   		  

Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 21 May 2013 09:56:53 -0300, Dmitry Gusev <dm...@gmail.com>  
wrote:

> Hi,

Hi!

> just curious if there is any plans integrating AngularJS with tapestry5?

What do you mean by "integration" in this case?

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is there will be any Tapestry5 + AngularJS integration?

Posted by Angelo Chen <an...@gmail.com>.
Hi,

I'd like to see, more layers in t5, one is the easy way of creating a rest
api, or the page class without template as mentioned by Howard, this should
be enough for the Single page app like angularJS, maybe it's already there,
but not so visible to me.

Another layer will be the complicated page/component support as what t5.3
has now which is not really needed by SPA.  I'd say T5.3/4 is very similar
to the current version of ExpressJS, it does everything, and a new
framework, HAPIjs is more on the rest api creation/validation, It is
getting popular nowadays as it works pretty well with SPA,  ExpressJS
version 4 is having some changes to meet the new requirement.  might be
worth to take a look at hapijs for the future improvements of t5.

a.c


On Tue, May 21, 2013 at 8:56 PM, Dmitry Gusev <dm...@gmail.com>wrote:

> Hi,
>
> just curious if there is any plans integrating AngularJS with tapestry5?
>
> I remember Howard wrote something about writing some proof-of-concept
> application:
>
> http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Now-hotness-at-SX-vs-5-4-td5720473.html#a5720928
>
> Any news in this area?
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>