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/17 01:07:54 UTC
svn commit: r804804 -
/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/composite/ImplementationHandler.java
Author: lu4242
Date: Sun Aug 16 23:07:54 2009
New Revision: 804804
URL: http://svn.apache.org/viewvc?rev=804804&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=804804&r1=804803&r2=804804&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 Sun Aug 16 23:07:54 2009
@@ -25,25 +25,33 @@
import javax.faces.view.facelets.TagConfig;
import javax.faces.view.facelets.TagHandler;
+import org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage;
+
/**
* @author Leonardo Uribe (latest modification by $Author$)
* @version $Revision$ $Date$
*/
public class ImplementationHandler extends TagHandler
{
-
+ public final static String NAME = "implementation";
+
public ImplementationHandler(TagConfig config)
{
super(config);
- // TODO Auto-generated constructor stub
}
@Override
public void apply(FaceletContext ctx, UIComponent parent)
throws IOException
{
- // TODO Auto-generated method stub
-
+ if (!FaceletViewDeclarationLanguage.
+ isBuildingCompositeComponentMetadata(ctx.getFacesContext()))
+ {
+ // If this tag is found in a facelet, the compiler has trimmed all
+ // 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.
+ nextHandler.apply(ctx, parent);
+ }
}
-
}