org.apache.myfaces.view.facelets
Class AbstractFacelet

java.lang.Object
  extended by org.apache.myfaces.view.facelets.Facelet
      extended by org.apache.myfaces.view.facelets.AbstractFacelet

public abstract class AbstractFacelet
extends Facelet

Since:
2.0.1
Version:
$Revision: 947351 $ $Date: 2010-05-22 19:19:48 -0500 (Sáb, 22 May 2010) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Constructor Summary
AbstractFacelet()
           
 
Method Summary
abstract  void applyCompositeComponent(AbstractFaceletContext ctx, javax.faces.component.UIComponent parent, javax.faces.application.Resource resource)
           
abstract  java.lang.String getAlias()
          Return the alias name for error messages and logging
abstract  javax.el.ExpressionFactory getExpressionFactory()
          Return this Facelet's ExpressionFactory instance
abstract  void include(AbstractFaceletContext ctx, javax.faces.component.UIComponent parent, java.lang.String path)
          Used for delegation by the DefaultFaceletContext.
abstract  void include(AbstractFaceletContext ctx, javax.faces.component.UIComponent parent, java.net.URL url)
          Grabs a DefaultFacelet from referenced DefaultFaceletFacotry
abstract  boolean isBuildingCompositeComponentMetadata()
           
 
Methods inherited from class org.apache.myfaces.view.facelets.Facelet
apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFacelet

public AbstractFacelet()
Method Detail

getExpressionFactory

public abstract javax.el.ExpressionFactory getExpressionFactory()
Return this Facelet's ExpressionFactory instance

Returns:
internal ExpressionFactory instance

include

public abstract void include(AbstractFaceletContext ctx,
                             javax.faces.component.UIComponent parent,
                             java.lang.String path)
                      throws java.io.IOException,
                             javax.faces.FacesException,
                             javax.faces.view.facelets.FaceletException,
                             javax.el.ELException
Used for delegation by the DefaultFaceletContext. First pulls the URL from getRelativePath(String), then calls include(FaceletContext, UIComponent, URL).

Parameters:
ctx - FaceletContext to pass to the included Facelet
parent - UIComponent to apply changes to
path - relative path to the desired Facelet from the FaceletContext
Throws:
java.io.IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException
See Also:
FaceletContext.includeFacelet(UIComponent, String)

include

public abstract void include(AbstractFaceletContext ctx,
                             javax.faces.component.UIComponent parent,
                             java.net.URL url)
                      throws java.io.IOException,
                             javax.faces.FacesException,
                             javax.faces.view.facelets.FaceletException,
                             javax.el.ELException
Grabs a DefaultFacelet from referenced DefaultFaceletFacotry

Parameters:
ctx - FaceletContext to pass to the included Facelet
parent - UIComponent to apply changes to
url - URL source to include Facelet from
Throws:
java.io.IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException
See Also:
DefaultFaceletFactory.getFacelet(URL)

getAlias

public abstract java.lang.String getAlias()
Return the alias name for error messages and logging

Returns:
alias name

applyCompositeComponent

public abstract void applyCompositeComponent(AbstractFaceletContext ctx,
                                             javax.faces.component.UIComponent parent,
                                             javax.faces.application.Resource resource)
                                      throws java.io.IOException,
                                             javax.faces.FacesException,
                                             javax.faces.view.facelets.FaceletException,
                                             javax.el.ELException
Throws:
java.io.IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException

isBuildingCompositeComponentMetadata

public abstract boolean isBuildingCompositeComponentMetadata()


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.