Interface TemplateClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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.
    • Method Detail

      • apply

        boolean apply​(FaceletContext ctx,
                      UIComponent parent,
                      String name)
               throws IOException,
                      FacesException,
                      FaceletException,
                      jakarta.el.ELException
        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.
        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