myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r698824 - /myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java
Date Thu, 25 Sep 2008 05:09:02 GMT
Author: gpetracek
Date: Wed Sep 24 22:09:02 2008
New Revision: 698824

URL: http://svn.apache.org/viewvc?rev=698824&view=rev
Log:
renderer proxy to avoid multiple calls of renderer methods (by renderer interceptors)

Modified:
    myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java

Modified: myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java?rev=698824&r1=698823&r2=698824&view=diff
==============================================================================
--- myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java
(original)
+++ myfaces/extensions/validator/branches/jsf_1.1/core/src/main/java/org/apache/myfaces/extensions/validator/core/RendererProxy.java
Wed Sep 24 22:09:02 2008
@@ -44,7 +44,7 @@
 
     private Object convertedValue = null;
     private String clientId = null;
-    private Boolean rendersChildren;
+    private Boolean rendersChildren = null;
 
     public RendererProxy(Renderer renderer)
     {
@@ -55,6 +55,7 @@
     {
         if(!isDecodeCalled)
         {
+            isDecodeCalled = true;
             wrapped.decode(facesContext, uiComponent);
         }
     }
@@ -64,6 +65,7 @@
     {
         if(!isEncodeBeginCalled)
         {
+            isEncodeBeginCalled = true;
             wrapped.encodeBegin(facesContext, uiComponent);
         }
     }
@@ -73,6 +75,7 @@
     {
         if(!isEncodeChildrenCalled)
         {
+            isEncodeChildrenCalled = true;
             wrapped.encodeChildren(facesContext, uiComponent);
         }
     }
@@ -82,6 +85,7 @@
     {
         if(!isEncodeEndCalled)
         {
+            isEncodeEndCalled = true;
             wrapped.encodeEnd(facesContext, uiComponent);
         }
     }
@@ -113,4 +117,4 @@
         }
         return this.convertedValue;
     }
-}
+}
\ No newline at end of file



Mime
View raw message