Top Description Inners Fields Constructors Methods
com.sun.faces.facelets.tag.composite

public Class InsertFacetHandler

extends TagHandlerImpl
Class Inheritance
Imports
java.io.IOException, java.util.Map, java.util.logging.Level, .Logger, com.sun.faces.facelets.tag.TagHandlerImpl, com.sun.faces.facelets.tag.faces.ComponentSupport, com.sun.faces.util.FacesLogger, jakarta.faces.application.Resource, jakarta.faces.component.UIComponent, jakarta.faces.event.AbortProcessingException, .ComponentSystemEvent, .PostAddToViewEvent, jakarta.faces.view.Location, jakarta.faces.view.facelets.FaceletContext, .TagAttribute, .TagConfig, .TagException

This TagHandler is responsible for relocating Facets defined within a composite component to a component within the composite component's composite:implementation section.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final Logger
private TagAttribute
private static final String
private TagAttribute
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
apply(FaceletContext
the current FaceletContext instance for this execution
ctx
,
UIComponent
the parent UIComponent to operate upon
parent
)

Implements jakarta.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

Inherited from com.sun.faces.facelets.tag.TagHandlerImpl:
findNextByTypefindNextByType

Field Detail

LOGGERback to summary
private final Logger LOGGER
nameback to summary
private TagAttribute name
NAME_ATTRIBUTEback to summary
private static final String NAME_ATTRIBUTE
requiredback to summary
private TagAttribute required
REQUIRED_ATTRIBUTEback to summary
private static final String REQUIRED_ATTRIBUTE

Constructor Detail

InsertFacetHandlerback to summary
public InsertFacetHandler(TagConfig config)

Method Detail

applyback to summary
public void apply(FaceletContext ctx, UIComponent parent) throws IOException

Implements jakarta.faces.view.facelets.FaceletHandler.apply.

Doc from jakarta.faces.view.facelets.FaceletHandler.apply.

Process changes on a particular UIComponent

Parameters
ctx:FaceletContext

the current FaceletContext instance for this execution

parent:UIComponent

the parent UIComponent to operate upon

Annotations
@Override
Exceptions
IOException:
if unable to load relativePath
com.sun.faces.facelets.tag.composite back to summary

private Class InsertFacetHandler.RelocateFacetListener

extends RelocateListener
Class Inheritance

Field Summary

Modifier and TypeField and Description
private UIComponent
private FaceletContext
private Location

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private boolean
public void
processEvent(ComponentSystemEvent
the ComponentSystemEvent instance that is being processed.
event
)

Implements jakarta.faces.event.ComponentSystemEventListener.processEvent.

When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true.

private void
throwRequiredException(FaceletContext ctx, String facetName, UIComponent compositeParent)

Inherited from com.sun.faces.facelets.tag.composite.RelocateListener:
getBackingResourceisTransientresourcesMatchrestoreStatesaveStatesetTransient

Field Detail

componentback to summary
private UIComponent component
ctxback to summary
private FaceletContext ctx
locationback to summary
private Location location

Constructor Detail

RelocateFacetListenerback to summary
pack-priv RelocateFacetListener(FaceletContext ctx, UIComponent component, Location location)

Method Detail

isRequiredback to summary
private boolean isRequired()
processEventback to summary
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException

Implements jakarta.faces.event.ComponentSystemEventListener.processEvent.

Doc from jakarta.faces.event.ComponentSystemEventListener.processEvent.

When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true.

Parameters
event:ComponentSystemEvent

the ComponentSystemEvent instance that is being processed.

Annotations
@Override
Exceptions
AbortProcessingException:
if lifecycle processing should cease for this request.
throwRequiredExceptionback to summary
private void throwRequiredException(FaceletContext ctx, String facetName, UIComponent compositeParent)