Thanks Jonathan,

   I´ll test it



2012/4/14 Jonathan Barker [via Tapestry] <
ml-node+s1045711n5641422...@n5.nabble.com>

> 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 <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5641422&i=0>>
> 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: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5641422&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5641422&i=2>
> >
>
>
>
> --
> Jonathan Barker
> ITStrategic
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5641422&i=3>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5641422&i=4>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Tapestry-with-Spring-tp5574749p5641422.html
>  To unsubscribe from Tapestry with Spring, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5574749&code=YXJ0ZXJ6YXRpakBnbWFpbC5jb218NTU3NDc0OXwtMzMxODIyMjI3>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Saludos,

-------------------------------------------------------------------
"Nada que se consiga sin pena y sin trabajo
 es verdaderamente valioso."
                                          Joseph Addison
-------------------------------------------------------------------

ICE Ernesto Arteaga Zavala
Ingeniero de Desarrollo


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-with-Spring-tp5574749p5642590.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Reply via email to