i also prefer constructor injection over anything else :) On Thu, Jun 9, 2011 at 8:05 AM, Taha Hafeez <tawus.tapes...@gmail.com>wrote:
> Yes, but wherever possible I find it a better option as using constructor > injection ensures the bean is created properly even if you yourself create > it, so minimal NPEs, just like the above case. > > regards > Taha > > On Thu, Jun 9, 2011 at 10:36 AM, kristian marinkovic < > kristian.marinko...@gmail.com> wrote: > > > Constructor injection does not work on pages, components and mixins. > Works > > only on services. > > G, > > Kris > > Am 2011 6 9 01:49 schrieb "ael" <alan-lua...@dash.com.ph>: > > > I always make life complicated. > > > > > > Well just inject the DAO within pages. problem solved. > > > But still i want to make my page class neat though. > > > > > > Also contructor injection is another solution. > > > > > > Thanks :) > > > > > > -- > > > View this message in context: > > > > > http://tapestry.1045711.n5.nabble.com/T5-Using-DAO-within-a-DAO-causes-NPE-tp4467009p4471238.html > > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > >