Class LegacyCompositionHandler
- java.lang.Object
- 
- jakarta.faces.view.facelets.TagHandler
- 
- org.apache.myfaces.view.facelets.tag.ui.LegacyCompositionHandler
 
 
- 
- All Implemented Interfaces:
- FaceletHandler,- TemplateClient
 
 public final class LegacyCompositionHandler extends TagHandler implements TemplateClient NOTE: This implementation is provided for compatibility reasons and it is considered faulty. It is enabled using org.apache.myfaces.STRICT_JSF_2_FACELETS_COMPATIBILITY web config param. Don't use it if EL expression caching is enabled.- Version:
- $Id: CompositionHandler.java,v 1.14 2008/07/13 19:01:42 rlubke Exp $
- Author:
- Jacob Hookom
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Map<String,DefineHandler>_handlersprotected LegacyParamHandler[]_paramsprotected TagAttribute_templateThe resolvable URI of the template to use.static StringNAME- 
Fields inherited from class jakarta.faces.view.facelets.TagHandlernextHandler, tag, tagId
 
- 
 - 
Constructor SummaryConstructors Constructor Description LegacyCompositionHandler(TagConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(FaceletContext ctx, UIComponent parent)booleanapply(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 jakarta.faces.view.facelets.TagHandlergetAttribute, getRequiredAttribute, toString
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static final String NAME - See Also:
- Constant Field Values
 
 - 
_templateprotected final TagAttribute _template The resolvable URI of the template to use. The content within the composition tag will be used in populating the template specified.
 - 
_handlersprotected final Map<String,DefineHandler> _handlers 
 - 
_paramsprotected final LegacyParamHandler[] _params 
 
- 
 - 
Constructor Detail- 
LegacyCompositionHandlerpublic LegacyCompositionHandler(TagConfig config) 
 
- 
 - 
Method Detail- 
applypublic void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, jakarta.el.ELException - Specified by:
- applyin interface- FaceletHandler
- Throws:
- IOException
- FacesException
- FaceletException
- jakarta.el.ELException
 
 - 
applypublic boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, jakarta.el.ELException Description copied from interface:TemplateClientThis 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:
- applyin 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
 
 
- 
 
-