This content has been marked as final. Show 5 replies
You can't inject Wicket components into Wicket components. Try injecting a Seam component, placed in WEB-INF/classes
So during a build, I placed everything under nl/jointeffort/ui (which is the Wicket UI) to WEB-INF/wicket and left the rest (nl/jointeffort/model) in WEB-INF/classes
Now, the sayer is no longer a WicketComponent, but it appears in the Seam initialization proces:
12:00:50,543 INFO [Component] Component: sayer, scope: EVENT, type: JAVA_BEAN, class: nl.jointeffort.model.Sayer
But my @In Sayer sayer remain null in Homepage.java
I think I don't understand Seam :-)
when I added an @In(create=true), the dependency is no longer null
Is it true that for event scoped objects nothing is creating until create=true?
Even @In EntityManager entityManager doesn't work :-(
12:18:37,298 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
Why don't you work backwards from Seam Wicket Example to the one you want? It may helps you understands.