You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/01/21 04:55:34 UTC
svn commit: r1061616 -
/myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java
Author: lu4242
Date: Fri Jan 21 03:55:34 2011
New Revision: 1061616
URL: http://svn.apache.org/viewvc?rev=1061616&view=rev
Log:
MYFACES-3021 javax.faces.view.facelets.ComponentHandler initializes TagHandlerDelegate on startup, but it should be on demand
Modified:
myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java
Modified: myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java?rev=1061616&r1=1061615&r2=1061616&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/view/facelets/ComponentHandler.java Fri Jan 21 03:55:34 2011
@@ -38,11 +38,7 @@ public class ComponentHandler extends De
super(config);
this.config = config;
-
- // Spec seems to indicate that the helper is created here, as opposed to other Handler
- // instances, where it's presumably a new instance for every getter call.
-
- this.helper = delegateFactory.createComponentHandlerDelegate (this);
+
}
public ComponentConfig getComponentConfig()
@@ -114,6 +110,13 @@ public class ComponentHandler extends De
protected TagHandlerDelegate getTagHandlerDelegate()
{
+ if (helper == null)
+ {
+ // Spec seems to indicate that the helper is created here, as opposed to other Handler
+ // instances, where it's presumably a new instance for every getter call.
+
+ this.helper = delegateFactory.createComponentHandlerDelegate (this);
+ }
return helper;
}
}