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 2009/08/28 03:02:21 UTC
svn commit: r808711 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java
Author: lu4242
Date: Fri Aug 28 01:02:20 2009
New Revision: 808711
URL: http://svn.apache.org/viewvc?rev=808711&view=rev
Log:
MYFACES-2316 Implement <composite:implementation> tag handler
Modified:
myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java
Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java?rev=808711&r1=808710&r2=808711&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java Fri Aug 28 01:02:20 2009
@@ -25,6 +25,7 @@
import javax.faces.view.facelets.TagConfig;
import javax.faces.view.facelets.TagHandler;
+import org.apache.myfaces.view.facelets.AbstractFaceletContext;
import org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage;
/**
@@ -34,7 +35,7 @@
public class ImplementationHandler extends TagHandler
{
public final static String NAME = "implementation";
-
+
public ImplementationHandler(TagConfig config)
{
super(config);
@@ -51,7 +52,12 @@
// tags outside this one excluding composite:interface, so "parent"
// is a component used as value for the facet key
// UIComponent.COMPOSITE_FACET_NAME in a composite component.
+
+ ((AbstractFaceletContext)ctx).pushCompositeComponentToStack(parent.getParent());
+
nextHandler.apply(ctx, parent);
+
+ ((AbstractFaceletContext)ctx).popCompositeComponentToStack();
}
}
}