You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/02/20 16:08:27 UTC
svn commit: r629499 -
/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java
Author: skitching
Date: Wed Feb 20 07:08:25 2008
New Revision: 629499
URL: http://svn.apache.org/viewvc?rev=629499&view=rev
Log:
Minor documentation fix only
Modified:
myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java
Modified: myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java?rev=629499&r1=629498&r2=629499&view=diff
==============================================================================
--- myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java (original)
+++ myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/conversation/ConversationManager.java Wed Feb 20 07:08:25 2008
@@ -130,7 +130,7 @@
* <p>
* The current conversationContextId will be retrieved from the request
* parameters. If no such parameter is present then a new id will be
- * allocated and a new ConversationContext created.
+ * allocated.
* <p>
* In either case the result will be stored within the request for
* faster lookup.
@@ -145,7 +145,11 @@
public Long getConversationContextId()
{
FrameworkAdapter fa = FrameworkAdapter.getCurrentInstance();
+
+ // first, check whether we have previously found this value and cached it as a
+ // request-scoped value.
Long conversationContextId = (Long)fa.getRequestAttribute(CONVERSATION_CONTEXT_REQ);
+
if (conversationContextId == null)
{
if (fa.containsRequestParameterAttribute(CONVERSATION_CONTEXT_PARAM))