Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
riate to inject RdbmsLogin? Many thank you for your help. --- On Mon, 3/8/09, Thiago H. de Paula Figueiredo wrote: > From: Thiago H. de Paula Figueiredo > Subject: Re: Tapestry 5 IoC binding interface with impl problem > To: "Tapestry users" > Date: Monday, 3 August,

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 19:57:12 -0300, neo anderson escreveu: Sorry I do not understand very well. What class I need to bind with RdbmsLogin? Shouldn't you inject LoginModule instead of RdbmsLogin? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
contains the binding clauses >> >> public class AppModule { >>        public static void bind(ServiceBinder binder) { >>                binder.bind(IAuthService.class, AuthService.class); >>                binder.bind(IAccount.class, Account.class); >>        } >

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Juan E. Maya
, Account.class); >        } > ... > } > > I think I may do something wrong, but I completely am not aware of it. Is > there anything I miss or misconfigure? > > Thanks in advice. > > --- On Mon, 3/8/09, Juan E. Maya wrote: > >> From: Juan E. Maya >>

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
.class); } ... } I think I may do something wrong, but I completely am not aware of it. Is there anything I miss or misconfigure? Thanks in advice. --- On Mon, 3/8/09, Juan E. Maya wrote: > From: Juan E. Maya > Subject: Re: Tapestry 5 IoC binding interface with impl problem > To

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 16:35:33 -0300, neo anderson escreveu: Thanks for reply. :) I am a bit confused now. Would you please give a bit more explain on how to add make AccountDAO a service? Using binder.bind() in some modules's bind(ServiceBinder) method or creating a buildXXX() method

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Juan E. Maya
-- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apa

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/Tapestry-5-IoC-bin

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 13:03:51 -0300, Neo Anderson escreveu: The problem is that it looks like accountDAO is always null. It seems to me that the IAccount does not successfully bind with AccountDAO class; It wasn't, unless you add make AccountDAO a service. Just instantiating it and using

Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
In the AppModule I add the following information to bind IAccount with AccountDAO class. ApplicationStateCreator account = new ApplicationStateCreator(){ public IAccount create() { re