org.apache.myfaces.view.facelets.tag.ui
Class InsertHandler
java.lang.Object
javax.faces.view.facelets.TagHandler
org.apache.myfaces.view.facelets.tag.ui.InsertHandler
- All Implemented Interfaces:
- FaceletHandler, ComponentContainerHandler, TemplateClient
@JSFFaceletTag(name="ui:insert")
public final class InsertHandler
- extends TagHandler
- implements TemplateClient, ComponentContainerHandler
The insert tag is used within your templates to declare spots of replicable data.
- Version:
- $Id: InsertHandler.java 1306699 2012-03-29 03:14:59Z lu4242 $
- Author:
- Jacob Hookom
InsertHandler
public InsertHandler(TagConfig config)
- Parameters:
config
-
apply
public void apply(FaceletContext ctx,
UIComponent parent)
throws IOException,
FacesException,
FaceletException,
javax.el.ELException
- Specified by:
apply
in interface FaceletHandler
- Throws:
IOException
FacesException
FaceletException
javax.el.ELException
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 © 2015 The Apache Software Foundation. All rights reserved.