You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bruno Aranda <br...@gmail.com> on 2008/06/16 11:21:16 UTC

[orchestra] one bean, two pages, one conversation

Hi,

I am having some problems trying to understand how conversations work.
I have two different pages which use the same backing bean. This bean
is configured in conversation.access and in a conversation with name
"general". However. the conversation seem to restart when I change
from one view to the other...

(the bean is called "searchBean")

2008-06-16 10:13:56,181 [btpool0-1] DEBUG
(AccessScopePhaseListener,152) - Not clearing accessed conversation
general after rendering view /pages/lala/page1.xhtml
2008-06-16 10:14:05,261 [btpool0-1] DEBUG
(AccessScopePhaseListener,152) - Not clearing accessed conversation
general after rendering view /page2.xhtml
2008-06-16 10:14:05,360 [btpool0-1] DEBUG (Conversation,102) - start
conversation:general
2008-06-16 10:14:05,362 [btpool0-1] DEBUG (Conversation,157) - put
bean to conversation:org.springframework.beans.factory.support.DisposableBeanAdapter@20534386(bean=org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchestraScope$1@d7330d)
2008-06-16 10:14:05,364 [btpool0-1] DEBUG (Conversation,157) - put
bean to conversation:org.apache.myfaces.orchestra.conversation.spring.PersistenceContextConversationInterceptor.PERSISTENCE_CONTEXT(bean=org.apache.myfaces.orchestra.conversation.spring.PersistenceContextCloser@58c80c)
2008-06-16 10:14:05,364 [btpool0-1] DEBUG (Conversation,157) - put
bean to conversation:searchBean(bean=uk.ac.ebi.intact.services.search.controller.SearchController@b59850)
....

The bean is configured in a spring file like this:

<bean id="searchBean"
class="uk.ac.ebi.intact.services.search.controller.SearchController"
          scope="conversation.access"
          orchestra:conversationName="general"/>

Additionally, as I was testing, the bean also has the @ViewController
annotation:

@ViewController(viewIds = {"/page2.xhtml","/pages/lala/page1.xhtml"})
public class SearchController extends JpaBaseController {

I am sure I am missing something. Any help?

Thanks!

Bruno