[JBoss Seam] - Using the microcontainer with TestNG
by ekusnitz
Where can I find current instructions for using the Microcontainer and the TestNG with Seam? I have used the instructions in the readme in the registration example, but apparently those are out of date.
Specifically, I am having a problem having Seam finding my components. If (and only if) my components are in my project's default output folder, Seam finds the component. However, my project has multiple source folders and therefore multiple build folders, so this will not work. I have tried putting the components.xml file in either my src or class folders, but it doesn't work. When I try to run it this way, I see the -Component message come up with my component, but not the DefaultInterceptorMarker one, and Seam fails to find it at Compnent.getInstance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963574#3963574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963574
19 years, 9 months
[JBoss Seam] - Resuming parent conversation
by lcoetzee
Hi,
I have been stuggling a bit to resume my parent conversation after the end of a nested (inner) conversation. I have seen quite a bit of postings regarding the topic but as yet I have not been able to resume my parent conversation.
I have the following scenario:
I am in a current conversation (say conversation id=1). From the interface I invoke an action method annotated with a @Begin(nested=true), thus starting my nested conversation with id =2. In conversation 2 I touch some of the previously outjected instances (from conversation 1). At some point I end the conversation (2) returning to a page via a rule in my faces-config. I end the conversation with the annotation @End(beforeRedirect=true). This ends the conversation and destroys the components (as used in this conversation, as well as the component which I have touched). When returning to the page I want to use a factory method to reload the component which now got destroyed with the inner conversation. I have annotated a Factory method to reload my instance (which also use the components which was outjected in conversation 1).
Unfortunately I run into a problem with the resumption of my parent conversation. When the Factory method gets invoked (after the ending and redirecting in conversation 2) none of the components associated with conversation 1 is available, almost indicating to me that the parent conversation has not been resumed (yet).
The above idea is based on my understanding as described in:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=88111
Any ideas of how to rejoin the parent conversation ?
Thanks
Louis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963563#3963563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963563
19 years, 9 months