public abstract class ScriptFamily extends UIComponentBase
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY
The standard component family.
|
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
ScriptFamily() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context)
If this component is rendered, then start the
<script> element. |
void |
encodeEnd(FacesContext context)
If this component is rendered, then end the
<script> element. |
String |
getFamily()
Returns
COMPONENT_FAMILY . |
boolean |
getRendersChildren()
Returns
true . |
protected boolean |
moveToBody(ComponentSystemEvent event)
Move this ScriptFamily component to end of body and returns
true if done so. |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_FAMILY
public String getFamily()
COMPONENT_FAMILY
.getFamily
in class UIComponent
public boolean getRendersChildren()
true
.getRendersChildren
in class UIComponentBase
public void encodeBegin(FacesContext context) throws IOException
<script>
element.encodeBegin
in class UIComponentBase
IOException
public void encodeEnd(FacesContext context) throws IOException
<script>
element.encodeEnd
in class UIComponentBase
IOException
protected boolean moveToBody(ComponentSystemEvent event)
true
if done so. This method
needs to be called from UIComponent.processEvent(ComponentSystemEvent)
during PostAddToViewEvent
or
PostRestoreStateEvent
. This has basically the same effect as setting target="body"
on a
component resource.event
- The involved event, which can be either PostAddToViewEvent
or PostRestoreStateEvent
.true
if the move has taken place.Copyright © 2012–2018 OmniFaces. All rights reserved.