[
https://issues.apache.org/jira/browse/WICKET-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5253.
-------------------------------------
Resolution: Duplicate
> Wicket-cdi not working with Weld 2.0
> -------------------------------------
>
> Key: WICKET-5253
> URL: https://issues.apache.org/jira/browse/WICKET-5253
> Project: Wicket
> Issue Type: Bug
> Components: wicket-cdi
> Affects Versions: 6.7.0, 6.8.0
> Environment: OSX 10.8, Glassfish 4.0, Java 7
> Reporter: Marcus Kara
>
> Wicket-cdi is violating the CDI spec by injecting every component. The spec
> is clear about this and non-static inner classes may not managed or injected.
> Weld error is: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class
> nl.frozn.liuk.web.wizard.component.employment.EmploymentPanel$1 cannot be a
> non-static inner class
> I made a workaround for ourself by using own INonContextualManager and check
> if the object that will be injected has no enclosing class.
> My workaround is.
> if (instance.getClass().getEnclosingClass() == null) {
> NonContextual.of(instance.getClass(),
> beanManager).inject(instance);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira