-
1. Re: Problem setting context variables programmatically (in a
hookomjj Sep 29, 2005 7:25 PM (in response to rdewell)"rdewell" wrote:
This works fine. I now have an instance to my AppView bean, and I perform the needed "setup". Now, how do I make Seam aware of AppView...? I can't set it in the Contexts.getConversationContext() myself because that context is not yet "active". And, it isn't "automatically" available in the conversation context either.
With Seam, you have your EJB container and then you have the SeamDeployer. The SeamDeployer needs to be able to reference the target Stateful EJB too, are you deploying with the recommended JBoss version, or Tomcat? -
2. Re: Problem setting context variables programmatically (in a
rdewell Sep 29, 2005 11:41 PM (in response to rdewell)This is all using the JBoss version specifically compiled for Seam.
Acquiring AppView.class via JNDI works just fine. I don't suspect there is any other way to acquire it in the ViewHandler, is there? But from there it is not getting automatically put in to the ConversationContext, nor do I seem to be able to programatically add it to that context (context not "active"). I even tried using InterceptorType.ALWAYS thinking that it might have to do with the phase JSF is in when calling createView, and so the SeamInterceptor was just not dealing with AppView... No luck.
Ryan -
3. Re: Problem setting context variables programmatically (in a
hookomjj Sep 30, 2005 12:07 AM (in response to rdewell)I would try grabbing the AppView by name from EL.
Conversations are started and ended in the Invoke Action phase. -
4. Re: Problem setting context variables programmatically (in a
rdewell Sep 30, 2005 11:33 AM (in response to rdewell)Yeah, I tried grabbing it by EL, but receive the error:
Caused by: java.lang.IllegalStateException: No conversation context active
I'm getting the impression that this just isn't possible?
Ryan