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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
Constructor Details
-
InitialTemplateClient
public InitialTemplateClient()
-
-
Method Details
-
apply
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, jakarta.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 interfaceTemplateClient
- 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
jakarta.el.ELException
-