org.apache.myfaces.view.facelets.impl
Class TemplateContextImpl.InitialTemplateClient
java.lang.Object
org.apache.myfaces.view.facelets.impl.TemplateContextImpl.InitialTemplateClient
- All Implemented Interfaces:
- TemplateClient
- Enclosing class:
- TemplateContextImpl
public static final class TemplateContextImpl.InitialTemplateClient
- extends Object
- implements TemplateClient
This is just a dummy template client that does nothing that is added by default
for each template context
Method Summary |
boolean |
apply(FaceletContext ctx,
UIComponent parent,
String name)
This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which
tells this instance what fragment/definition it's looking for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateContextImpl.InitialTemplateClient
public TemplateContextImpl.InitialTemplateClient()
apply
public boolean apply(FaceletContext ctx,
UIComponent parent,
String name)
throws IOException,
FacesException,
FaceletException,
javax.el.ELException
- Description copied from interface:
TemplateClient
- This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which
tells this instance what fragment/definition it's looking for. If you are a match, apply your logic to the passed
UIComponent and return true, otherwise do nothing and return false.
- Specified by:
apply
in interface TemplateClient
- Parameters:
ctx
- the FaceletContext of your instance, not the templates'parent
- current UIComponent instance to be appliedname
- the String name or null if the whole body should be included
- Returns:
- true if this client matched/applied the definition for the passed name
- Throws:
IOException
FacesException
FaceletException
javax.el.ELException
Copyright © 2014 The Apache Software Foundation. All rights reserved.