If you are injecting into a service (and not a page) then you want to
have a service constructor that takes a LoginService parameter.  The
injection style you have used is for Pages and Components.

On Sat, Apr 14, 2012 at 11:56 AM, arterzatij <arterza...@gmail.com> wrote:
> Hi,
>
> I'm currently doing some similar integration.
>
> First thing, while loading services the spring bean is loaded.
>
> This is the log info
>
> <code>[DEBUG] spring.TapestryBeanFactory Creating shared instance of
> singleton bean 'loginService'
> [DEBUG] spring.TapestryBeanFactory Creating instance of bean 'loginService'
> [DEBUG] spring.TapestryBeanFactory Eagerly caching bean 'loginService' to
> allow for resolving potential circular references
> [DEBUG] spring.TapestryBeanFactory Finished creating instance of bean
> 'loginService'
> </code>
>
> Second, when I'm trying to inject it into a class. It simply does not
> injected I'm getting a null service...
>
> and this is the way i'm currently injecting the service:
>
> <code>
>        @Inject
>        private LoginService loginService;
> </code>
>
> BTW, the current class that I'm trying to inject this Spring Bean is a class
> Service that use the Tapestry Spring-Security to do the authentication.
>
> There are some stuff that I missing?
>
> Hope some could help me.
>
> Thanks in advance.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Tapestry-with-Spring-tp5574749p5640804.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
>



-- 
Jonathan Barker
ITStrategic

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

Reply via email to