Hi,
I have a the usual example problem (Master/Detail). I have the following
beans defined:
<bean id="personSearchBean" class="xxx.PersonSearchBean"
scope="conversation.access" orchestra:conversationName="conv1">
</bean>
<bean id="personDetailsBean" class="xxx.PersonDetailsBean"
scope="conversation.access" orchestra:conversationName="conv1">
</bean>
I pass the details from personSearchBean to personDetailsBean from within
the JSF using:
<tr:commandLink textAndAccessKey="#{person.name}"
action="#{personDetailsBean.viewPerson}" partialSubmit="true">
<tr:setActionListener from="#{person}" to="#{personDetailsBean.person}" />
</tr:commandLink>
Now the debug info: (Implements ConversationBindingListener)
13:15:48,559 DEBUG PersonSearchBean:81 - valueBound...
(----click...view)
13:17:12,216 DEBUG PersonDetailsBean:23 - Instance: 0 (unique runtime object
id)
13:17:12,262 DEBUG PersonDetailsBean:47 - valueBound...
13:17:12,278 DEBUG PersonDetailsBean:29 - setting person: Jon myId=0
13:17:12,278 DEBUG PersonDetailsBean:30 - conversation name=conv1
13:17:12,278 DEBUG PersonDetailsBean:52 - valueUnbound...
13:17:12,294 DEBUG PersonSearchBean:86 - valueUnbound...
(as you can see at this point it unbound this conversation)
13:17:12,419 DEBUG PersonDetailsBean:23 - Instance: 1
13:17:12,434 DEBUG PersonDetailsBean:47 - valueBound...
13:17:12,434 DEBUG PersonDetailsBean:35 - Reading person from: 1
13:17:12,434 DEBUG PersonDetailsBean:36 - conversation name=conv1
note: I have tried using conversation.manual because I am using AJAX and it
could mess things up but same behaviour.
13:22:57,231 DEBUG PersonSearchBean:81 - valueBound...
13:23:00,653 DEBUG PersonDetailsBean:23 - Instance: 0
13:23:00,684 DEBUG PersonDetailsBean:47 - valueBound...
13:23:00,700 DEBUG PersonDetailsBean:29 - setting person: Man myId=0
13:23:00,716 DEBUG PersonDetailsBean:30 - conversation name=conv1
(create new instance but though because it is manual it is not unbound)
13:23:00,856 DEBUG PersonDetailsBean:23 - Instance: 1
13:23:00,856 DEBUG PersonDetailsBean:47 - valueBound...
13:23:00,856 DEBUG PersonDetailsBean:35 - Reading person from: 1
13:23:00,856 DEBUG PersonDetailsBean:36 - conversation name=conv1
--
View this message in context:
http://www.nabble.com/Orchestra-multi-bean-Conversation-strange-behaviour-tp25530275p25530275.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.