incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r424002 - /incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java
Date Thu, 20 Jul 2006 17:51:18 GMT
Author: matzew
Date: Thu Jul 20 10:51:18 2006
New Revision: 424002

URL: http://svn.apache.org/viewvc?rev=424002&view=rev
Log:
Fixed ADFFACES-70; Created PartitialPageRenderingUtils and made PartialPageUtils final, since
it already has a private constructor. inside isPartialReq() the method from PartitialPageRenderingUtils
clazz is used

Modified:
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java

Modified: incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java?rev=424002&r1=424001&r2=424002&view=diff
==============================================================================
--- incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java
(original)
+++ incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PartialPageUtils.java
Thu Jul 20 10:51:18 2006
@@ -20,6 +20,7 @@
 import javax.faces.context.FacesContext;
 
 import org.apache.myfaces.adf.context.AdfFacesContext;
+import org.apache.myfaces.adf.util.PartitialPageRenderingUtils;
 
 import org.apache.myfaces.adfinternal.agent.AdfFacesAgent;
 
@@ -32,7 +33,7 @@
  * @version $Name:  $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/xhtml/PartialPageUtils.java#0
$) $Date: 10-nov-2005.19:01:41 $
  * @author The Oracle ADF Faces Team
  */
-public class PartialPageUtils
+public final class PartialPageUtils
 {
   private PartialPageUtils()
   {
@@ -40,15 +41,7 @@
 
   public static boolean isPartialRequest(FacesContext context)
   {
-    Map requestMap = context.getExternalContext().getRequestMap();
-    if (Boolean.TRUE.equals(requestMap.get(_PARTIAL_KEY)))
-      return true;
-
-    Map parameters = context.getExternalContext().getRequestParameterMap();
-    if ("true".equals(parameters.get(XhtmlConstants.PARTIAL_PARAM)))
-      return true;
-
-    return false;
+    return PartitialPageRenderingUtils.isPartialRequest(context);
   }
 
 



Mime
View raw message