Re: T5 Services with diferent Implementation

2008-05-20 Thread Thiago HP
On 5/20/08, Christian Edward Gruber <[EMAIL PROTECTED]> wrote: > Wouldn't it be rather normal to create a tapestry-tx that provided > transaction wrappers around existing services, much the way tapestry-spring > and tapestry-hibernate do? Especially now that there's a bit more AOP going > on in T5

Re: T5 Services with diferent Implementation

2008-05-20 Thread Christian Edward Gruber
Wouldn't it be rather normal to create a tapestry-tx that provided transaction wrappers around existing services, much the way tapestry- spring and tapestry-hibernate do? Especially now that there's a bit more AOP going on in T5. Christian. On 20-May-08, at 17:00 , Thiago HP wrote: On 5/

Re: T5 Services with diferent Implementation

2008-05-20 Thread Thiago HP
On 5/20/08, Zheng, Xiahong <[EMAIL PROTECTED]> wrote: > I would use Spring to configure the type of services you are trying to > provide to your pages. I am wondering if using Tapestry services has any > advantages in this case. 1) Tapestry-IoC has a nicer way to describe services (even compared

RE: T5 Services with diferent Implementation

2008-05-20 Thread Zheng, Xiahong
@tapestry.apache.org Subject: Re: T5 Services with diferent Implementation Bless you man! But wouldn't it be easy if in the docs concerning services a mock example will bring you through all the steps needed to do a thing that at the end is just merely convention?? If you naively go to look after the

Re: T5 Services with diferent Implementation

2008-05-20 Thread maxthesecond
I'm done! >> >> >> >> HugoPalma wrote: >> >>> Try: >>> >>> @Inject >>> @Service("MyService1") private IMyInterface _CMF; >>> >>> >>> Check the end of this page >>> http://tapest

Re: T5 Services with diferent Implementation

2008-05-20 Thread Hugo Palma
You should be using org.apache.tapestry.annotations.Service annotation. http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/annotations/Service.html maxthesecond wrote: > Almost, but now compiler doesen't know what @Service is. > I've read the documents but they lack a sample of

Re: T5 Services with diferent Implementation

2008-05-20 Thread maxthesecond
ep and I'm done! HugoPalma wrote: > > Try: > > @Inject > @Service("MyService1") private IMyInterface _CMF; > > > Check the end of this page > http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html > -- View this message

Re: T5 Services with diferent Implementation

2008-05-20 Thread Hugo Palma
Try: @Inject @Service("MyService1") private IMyInterface _CMF; Check the end of this page http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html maxthesecond wrote: > Thanks a lot > but now I get the following compiler error: The anotation @InjectService is > disallowed for this

Re: T5 Services with diferent Implementation

2008-05-20 Thread maxthesecond
t;Myservice1"); >> binder.bind(IMyInterface.class,MyImplementation2.class).withId("MyService2"); >> >> But now the question is: How I am suposed to used it from the client >> side( I mean a page a component)? >> >> @Inject MyService1? >> >

Re: T5 Services with diferent Implementation

2008-05-20 Thread Kheldar666
uot;Myservice1"); > binder.bind(IMyInterface.class,MyImplementation2.class).withId("MyService2"); > > But now the question is: How I am suposed to used it from the client side( > I mean a page a component)? > > @Inject MyService1? > > thanks for the

T5 Services with diferent Implementation

2008-05-20 Thread maxthesecond
o used it from the client side( I mean a page a component)? @Inject MyService1? thanks for the answer! -- View this message in context: http://www.nabble.com/T5-Services-with-diferent-Implementation-tp17348534p17348534.html Sent from the Tapestry - User mailing l