org.nuxeo.theme.jsf.facelets.vendor
Class DefaultFacelet
java.lang.Object
com.sun.facelets.Facelet
org.nuxeo.theme.jsf.facelets.vendor.DefaultFacelet
public final class DefaultFacelet
- extends com.sun.facelets.Facelet
Default Facelet implementation. Copied from facelets-1.1.15.B1 by Jean-Marc
Orliaguet - class made public 2010/10/24.
- Version:
- $Id: DefaultFacelet.java,v 1.9 2006/04/03 05:10:38 jhook Exp $
- Author:
- Jacob Hookom
DefaultFacelet
public DefaultFacelet(DefaultFaceletFactory factory,
ExpressionFactory el,
URL src,
String alias,
com.sun.facelets.FaceletHandler root)
apply
public void apply(FacesContext facesContext,
UIComponent parent)
throws IOException,
FacesException,
com.sun.facelets.FaceletException,
ELException
- Specified by:
apply
in class com.sun.facelets.Facelet
- Throws:
IOException
FacesException
com.sun.facelets.FaceletException
ELException
- See Also:
Facelet.apply(javax.faces.context.FacesContext,
javax.faces.component.UIComponent)
getAlias
public String getAlias()
- Return the alias name for error messages and logging
- Returns:
- alias name
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Return this Facelet's ExpressionFactory instance
- Returns:
- internal ExpressionFactory instance
getCreateTime
public long getCreateTime()
- The time when this Facelet was created, NOT the URL source code
- Returns:
- final timestamp of when this Facelet was created
getSource
public URL getSource()
- The URL this Facelet was created from.
- Returns:
- the URL this Facelet was created from
include
public void include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx,
UIComponent parent,
String path)
throws IOException,
FacesException,
com.sun.facelets.FaceletException,
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 Faceletparent
- UIComponent to apply changes topath
- relative path to the desired Facelet from the FaceletContext
- Throws:
IOException
FacesException
com.sun.facelets.FaceletException
ELException
- See Also:
FaceletContext.includeFacelet(UIComponent, String)
include
public void include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx,
UIComponent parent,
URL url)
throws IOException,
FacesException,
com.sun.facelets.FaceletException,
ELException
- Grabs a DefaultFacelet from referenced DefaultFaceletFacotry
- Parameters:
ctx
- FaceletContext to pass to the included Faceletparent
- UIComponent to apply changes tourl
- URL source to include Facelet from
- Throws:
IOException
FacesException
com.sun.facelets.FaceletException
ELException
- See Also:
DefaultFaceletFactory.getFacelet(URL)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Nuxeo SAS. All Rights Reserved.