Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Wicket CDI 1.1

$
0
0
Hi All

I am in the process of moving my application to JavaEE7 and CDI 1.1. Things
are going well all except for some CDI values. I have an @Stateless Session
bean used for my DAO which I then Inject into various classes. The issue I
have is that some of the classes don't get the reference Injected properly
and give a NPE. With wicket CDI I was able to call
CdiContainer.get().getNonContextualManager().inject(this); to Inject the
reference properly.

I know CDI 1.1 is different but I can't work out how to Inject the
Component with Wicket CDI 1.1?

Here is the code in my WicketApplication init():

new CdiConfiguration().setPropagation(NONE).configure(this);

Thanks

David

Viewing all articles
Browse latest Browse all 5648

Trending Articles