Class 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 Detail

      • InitialTemplateClient

        public InitialTemplateClient()
    • Method Detail

      • 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 interface TemplateClient
        Parameters:
        ctx - the FaceletContext of your instance, not the templates'
        parent - current UIComponent instance to be applied
        name - 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