You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rick van Son <ri...@foreyet.com> on 2011/12/19 17:32:32 UTC

About making EJB's working in AuthenticatedWebSession.

Hello everyone,

How could I make an @EJB working in an (Extend of) AuthenticatedWebSession?

Somehow they keep staying null, while the EJB's just work in my webpages (
who are extended from WebPage ).

Thanks in advance,

Rick

Re: About making EJB's working in AuthenticatedWebSession.

Posted by Rick van Son <ri...@foreyet.com>.
It worked like a charm. Thanks for the help Martin.

2011/12/19 Martin Grigorov <

> In Wicket 1.5.3 only Components and Behaviors are auto injected.
> For everything else you need to call "Innjector.get().inject(this)" in
> the constructor.
>
> On Mon, Dec 19, 2011 at 6:32 PM, Rick van Son <ri...@foreyet.com>
> wrote:
> > Hello everyone,
> >
> > How could I make an @EJB working in an (Extend of)
> AuthenticatedWebSession?
> >
> > Somehow they keep staying null, while the EJB's just work in my webpages
> (
> > who are extended from WebPage ).
> >
> > Thanks in advance,
> >
> > Rick
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: About making EJB's working in AuthenticatedWebSession.

Posted by Martin Grigorov <mg...@apache.org>.
In Wicket 1.5.3 only Components and Behaviors are auto injected.
For everything else you need to call "Innjector.get().inject(this)" in
the constructor.

On Mon, Dec 19, 2011 at 6:32 PM, Rick van Son <ri...@foreyet.com> wrote:
> Hello everyone,
>
> How could I make an @EJB working in an (Extend of) AuthenticatedWebSession?
>
> Somehow they keep staying null, while the EJB's just work in my webpages (
> who are extended from WebPage ).
>
> Thanks in advance,
>
> Rick



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org