Hello,
I see this from log:
1) detail page is created -> new assetDetailController (@1aa4bb4) is
created and new conversation is created
2) transfer to next page in grid view -> assetDetailController
(@1aa4bb4) is called, but the conversation is cleared at the end.
3) transfer to next page in grid view -> new assetDetailController
(@13699a61aa4bb4) is created and also new conversation
Here are my (relevant) config files:
Orchestra setting:
<!-- 1. initialization of all orchestra modules (required for core15
module) -->
<import resource="classpath*:/META-INF/spring-orchestra-init.xml" />
<!-- 2. the conversation scopes definition -->
<bean
class="org.springframework.beans.factory.config.CustomScopeConfigurer">
<property name="scopes">
<map>
<entry key="conversation.manual">
<bean
class="org.apache.myfaces.orchestra.conversation.spring.SpringConversati
onScope">
<property name="timeout" value="30" />
</bean>
</entry>
<entry key="conversation.access">
<bean
class="org.apache.myfaces.orchestra.conversation.spring.SpringConversati
onScope">
<property name="timeout" value="30" />
<property name="lifetime" value="access"/>
</bean>
</entry>
</map>
</property>
</bean>
Detail controller (note: I use "detailBean" name for simplification
only):
<bean id="assetDetailController" parent="baseAssetController"
scope="conversation.access"
class="com.anect.rmt.web.controllers.assets.AssetDetailController">
</bean>
JSF config:
<variable-resolver>org.springframework.web.jsf.SpringBeanVariableResolve
r</variable-resolver>
web.xml
<listener>
<listener-class>org.springframework.web.context.request.RequestContextLi
stener</listener-class>
</listener>
<listener>
<listener-class>org.apache.myfaces.orchestra.conversation.servlet.Conver
sationManagerSessionListener</listener-class>
</listener>
I also attach logs from transfer to next page:
2008-08-28 07:42:47,376 DEBUG: Bound request context to thread:
[EMAIL PROTECTED]
2008-08-28 07:42:47,376 DEBUG: getFacesContext: entry
2008-08-28 07:42:47,376 DEBUG: getFacesContext: creating custom instance
2008-08-28 07:42:47,376 DEBUG: getFacesContext: running inner
constructor
2008-08-28 07:42:47,376 DEBUG: Running inithandler of type
org.apache.myfaces.orchestra.lib.jsf.ContextLockRequestHandler
2008-08-28 07:42:47,376 DEBUG: Running inithandler of type
org.apache.myfaces.orchestra.lib.jsf.FrameworkAdapterRequestHandler
2008-08-28 07:42:47,376 DEBUG: init
2008-08-28 07:42:47,376 DEBUG: creating jsfFrameworkAdapter
2008-08-28 07:42:47,376 DEBUG: Beginning request
2008-08-28 07:42:47,376 DEBUG: Running inithandler of type
org.apache.myfaces.orchestra.lib.jsf.ConversationManagerRequestHandler
2008-08-28 07:42:47,408 DEBUG: Running inithandler of type
org.apache.myfaces.orchestra.lib.jsf.DataSourceLeakRequestHandler
2008-08-28 07:42:47,408 DEBUG: Attempting to resolve variable
'traceData' in Spring ApplicationContext
2008-08-28 07:42:47,408 DEBUG: Attempting to resolve variable
'traceData' via original VariableResolver
2008-08-28 07:42:47,408 DEBUG: Successfully resolved variable
'traceData' via original VariableResolver
2008-08-28 07:42:47,408 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,408 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,408 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,439 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'assetDetail' in Spring ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'assetDetail' via original VariableResolver
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManager' in Spring
ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManager' via
original VariableResolver
2008-08-28 07:42:47,439 DEBUG: Variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManager' could not
be resolved.
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguratio
n' in Spring ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguratio
n' via original VariableResolver
2008-08-28 07:42:47,439 DEBUG: Variable
'org.apache.myfaces.orchestra.conversation.FlashScopeManagerConfiguratio
n' could not be resolved.
2008-08-28 07:42:47,439 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.conversation.AccessScopeManager' in Spring
ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.conversation.AccessScopeManager' in Spring
ApplicationContext
2008-08-28 07:42:47,439 DEBUG: Creating instance of bean
'org.apache.myfaces.orchestra.conversation.AccessScopeManager'
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean
'org.apache.myfaces.orchestra.conversation.AccessScopeManagerConfigurati
on'
2008-08-28 07:42:47,455 DEBUG: Finished creating instance of bean
'org.apache.myfaces.orchestra.conversation.AccessScopeManager'
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'facesContext' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetail' in Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'assetDetail' via original VariableResolver
2008-08-28 07:42:47,455 DEBUG: Variable 'assetDetail' could not be
resolved.
2008-08-28 07:42:47,455 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,455 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,455 INFO : INFRAGISTICS: Start rendering a
SmartRefresh request
2008-08-28 07:42:47,533 DEBUG: Attempting to resolve variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,533 DEBUG: Successfully resolved variable
'assetDetailController' in Spring ApplicationContext
2008-08-28 07:42:47,533 DEBUG: AssetDetailController is called
[EMAIL PROTECTED]
2008-08-28 07:42:47,564 DEBUG: Attempting to resolve variable
'com_infragistics_faces_THEME' in Spring ApplicationContext
2008-08-28 07:42:47,564 DEBUG: Attempting to resolve variable
'com_infragistics_faces_THEME' via original VariableResolver
2008-08-28 07:42:47,564 DEBUG: Variable 'com_infragistics_faces_THEME'
could not be resolved.
2008-08-28 07:42:47,580 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,580 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,580 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,580 DEBUG: Attempting to resolve variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,580 DEBUG: Successfully resolved variable
'org.apache.myfaces.orchestra.viewController.ViewControllerManager' in
Spring ApplicationContext
2008-08-28 07:42:47,580 DEBUG: Returning cached instance of singleton
bean 'org.apache.myfaces.orchestra.viewController.ViewControllerManager'
2008-08-28 07:42:47,580 DEBUG: Clearing access-scoped conversation
assetDetailController after rendering view /assetDetail.jsp
2008-08-28 07:42:47,580 DEBUG: destroy
conversation:assetDetailController
2008-08-28 07:42:47,580 DEBUG: Invoking destroy() on bean with name
'assetDetailController'
Bean destroid ...
2008-08-28 07:42:47,580 DEBUG: Running release
2008-08-28 07:42:47,580 DEBUG: Ending request
2008-08-28 07:42:47,580 DEBUG: Release completed
2008-08-28 07:42:47,580 DEBUG: Cleared thread-bound request context:
[EMAIL PROTECTED]
PETER