Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.jsf.facelets.vendor
Class DefaultFacelet

java.lang.Object
  extended by com.sun.facelets.Facelet
      extended by 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, ExpressionFactory el, URL src, String alias, com.sun.facelets.FaceletHandler root)
           
 
Method Summary
 void apply(FacesContext facesContext, UIComponent parent)
           
 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
 ExpressionFactory getExpressionFactory()
          Return this Facelet's ExpressionFactory instance
 URL getSource()
          The URL this Facelet was created from.
 void include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx, UIComponent parent, String path)
          Used for delegation by the DefaultFaceletContext.
 void include(org.nuxeo.theme.jsf.facelets.vendor.DefaultFaceletContext ctx, UIComponent parent, URL url)
          Grabs a DefaultFacelet from referenced DefaultFaceletFacotry
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFacelet

public DefaultFacelet(DefaultFaceletFactory factory,
                      ExpressionFactory el,
                      URL src,
                      String alias,
                      com.sun.facelets.FaceletHandler root)
Method Detail

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 Facelet
parent - UIComponent to apply changes to
path - 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 Facelet
parent - UIComponent to apply changes to
url - 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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.