That looks nicer than what I had :). Great, thanks a lot!
Kurt
2012/11/25 Martin Grigorov :
> I don't use Wicket-CDI in my applications so I don't have much experience
> with it but I just took a look at the APIs and here is how I would do it:
>
> CdiContainer.get().getNonContextualManager().injec
I don't use Wicket-CDI in my applications so I don't have much experience
with it but I just took a look at the APIs and here is how I would do it:
CdiContainer.get().getNonContextualManager().inject(this);
On Sun, Nov 25, 2012 at 4:59 PM, Kurt Sys wrote:
> Hey Martin,
>
> Thanks. The init-met
Hey Martin,
Thanks. The init-method of MySession looks now like this:
--
private void init() {
BeanManager manager = null;
try {
manager = (BeanManager)
InitialContext.doLookup("java:comp/BeanManager");
} catch (Namin
Hi,
Wicket is a bit inconsistent with its CDI integration.
It doesn't use wicket-ioc Injector at all.
You have to use NonContextual.of(...).inject(this) instead.
On Sun, Nov 25, 2012 at 4:27 PM, Kurt Sys wrote:
> Hey all,
> I'm trying to get cdi/injection to work with wicket. So far,
> everyth
Hey all,
I'm trying to get cdi/injection to work with wicket. So far,
everything seems to be allright except for one thing: injecting into a
wicket-websession. Seems logical in some way, since a session is not a
component, so I tried using 'Injector.get().inject(this)', but
apparently, Injector.get