This content has been marked as final.
Show 5 replies
-
1. Re: Can't get @In working with Wicket
pmuir Sep 22, 2008 11:54 AM (in response to mlindhout.mlindhout.jointeffort.nl)You can't inject Wicket components into Wicket components. Try injecting a Seam component, placed in WEB-INF/classes
-
2. Re: Can't get @In working with Wicket
mlindhout.mlindhout.jointeffort.nl Sep 22, 2008 12:05 PM (in response to mlindhout.mlindhout.jointeffort.nl)Thanx Pete,
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
:-( -
3. Re: Can't get @In working with Wicket
mlindhout.mlindhout.jointeffort.nl Sep 22, 2008 12:09 PM (in response to mlindhout.mlindhout.jointeffort.nl)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? -
4. Re: Can't get @In working with Wicket
mlindhout.mlindhout.jointeffort.nl Sep 22, 2008 12:22 PM (in response to mlindhout.mlindhout.jointeffort.nl)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 -
5. Re: Can't get @In working with Wicket
barbacena Sep 22, 2008 8:40 PM (in response to mlindhout.mlindhout.jointeffort.nl)Why don't you work backwards from Seam Wicket Example to the one you want? It may helps you understands.