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

2014-03-30 Thread Angelo Chen
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 dmitry.gu...@gmail.comwrote:

 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



Contributing InjectionProvider

2014-03-30 Thread Sanket Sharma
Hi,

I am trying to add my own InjectionProvider into my tapestry modules. In
the main module class, I have the following code:


 public void contributeInjectionProvider(

OrderedConfigurationInjectionProvider2 configuration,

MasterObjectProvider masterObjectProvider, ObjectLocator locator,

SymbolSource symbolSource, AssetSource assetSource) {

System.out.println(contributeInjectionProvider called);


 }


However, the code is never called and the system.out.println is never print
on screen.


I tired to read through the source and found in the tapestry's own tapestry
module, there are methods that use @Contribute(InjectionProvider2.class)
and I tried that as well:


@Contribute(InjectionProvider2.class)

public void contributeInjectionProvider(

OrderedConfigurationInjectionProvider2 configuration,

MasterObjectProvider masterObjectProvider, ObjectLocator locator,

SymbolSource symbolSource, AssetSource assetSource) {

System.out.println(contributeInjectionProvider called);



 }


However, the code is still not executed. Can't figure out what I'm doing
wrong.


Any help will be greatly appreciated.


Thank you in advance.


Sanket