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
Constructor Summary |
DefaultFacelet(DefaultFaceletFactory factory,
javax.el.ExpressionFactory el,
java.net.URL src,
java.lang.String alias,
com.sun.facelets.FaceletHandler root)
|
Method Summary |
void |
apply(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent parent)
|
java.lang.String |
getAlias()
Return the alias name for error messages and logging |
long |
getCreateTime()
The time when this Facelet was created, NOT the URL source code |
javax.el.ExpressionFactory |
getExpressionFactory()
Return this Facelet's ExpressionFactory instance |
java.net.URL |
getSource()
The URL this Facelet was created from. |
void |
include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent,
java.lang.String path)
Used for delegation by the DefaultFaceletContext. |
void |
include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent,
java.net.URL url)
Grabs a DefaultFacelet from referenced DefaultFaceletFacotry |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultFacelet
public DefaultFacelet(DefaultFaceletFactory factory,
javax.el.ExpressionFactory el,
java.net.URL src,
java.lang.String alias,
com.sun.facelets.FaceletHandler root)
apply
public void apply(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent parent)
throws java.io.IOException,
javax.faces.FacesException,
com.sun.facelets.FaceletException,
javax.el.ELException
- Specified by:
apply
in class com.sun.facelets.Facelet
- Throws:
java.io.IOException
javax.faces.FacesException
com.sun.facelets.FaceletException
javax.el.ELException
- See Also:
Facelet.apply(javax.faces.context.FacesContext,
javax.faces.component.UIComponent)
getAlias
public java.lang.String getAlias()
- Return the alias name for error messages and logging
- Returns:
- alias name
getExpressionFactory
public javax.el.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 java.net.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,
javax.faces.component.UIComponent parent,
java.lang.String path)
throws java.io.IOException,
javax.faces.FacesException,
com.sun.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 Faceletparent
- UIComponent to apply changes topath
- relative path to the desired Facelet from the FaceletContext
- Throws:
java.io.IOException
javax.faces.FacesException
com.sun.facelets.FaceletException
javax.el.ELException
- See Also:
FaceletContext.includeFacelet(UIComponent, String)
include
public void include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx,
javax.faces.component.UIComponent parent,
java.net.URL url)
throws java.io.IOException,
javax.faces.FacesException,
com.sun.facelets.FaceletException,
javax.el.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:
java.io.IOException
javax.faces.FacesException
com.sun.facelets.FaceletException
javax.el.ELException
- See Also:
DefaultFaceletFactory.getFacelet(URL)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Nuxeo SAS. All Rights Reserved.