public class ImportTemplate extends UINamingContainer implements PhaseListener, IPostPageComponentPhaseListener, IScopedVariableComponent, IDynamicComponent
Modifier and Type | Field and Description |
---|---|
protected Integer |
fInstanceNumber |
static String |
PARAM_ID_PREFIX |
protected static String |
VIEW_CHECKED_FORM_NESTING |
protected static String |
VIEW_LOADED |
COMPONENT_FAMILY, COMPONENT_TYPE, SEPARATOR_CHAR_PARAM_NAME
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
SEPARATOR_CHAR
Constructor and Description |
---|
ImportTemplate() |
Modifier and Type | Method and Description |
---|---|
void |
afterPhase(PhaseEvent event) |
void |
beforePhase(PhaseEvent event) |
protected void |
clearComponentBeans(UIComponent component) |
void |
encodeBegin(FacesContext context) |
void |
encodeChildren(FacesContext context) |
void |
encodeEnd(FacesContext context) |
int |
getFacetCount() |
Iterator<UIComponent> |
getFacetsAndChildren() |
protected static ImportTemplate |
getImportContainer(FacesContext context,
UIComponent component)
Finds the import control containing the specified component.
|
protected Object |
getInternalPageBean() |
protected String |
getInternalPageBeanName()
Deprecated.
|
protected String |
getPageBeanName() |
PhaseId |
getPhaseId() |
PhaseId |
getPostPagePhaseId() |
boolean |
getRendersChildren() |
Object |
getScopedVariable()
Gets the scoped variable object
|
String |
getScopedVariableName()
Get the name of the scoped variable
|
Object |
getValue() |
BaseViewBean |
getViewPageBean()
Return a reference to the page bean backing this instance, for
use cases where the bean needs to be referenced outside the context
of the Import control.
|
protected void |
handleNestedForms() |
protected void |
importView(String viewId)
Imports the contents of the specified view as children of this control.
|
void |
populateInitialComponents()
Perform the initial programmatic manipulation of the component
tree.
|
void |
postPageAfterPhase(PhaseEvent event) |
void |
postPageBeforePhase(PhaseEvent event) |
void |
processDecodes(FacesContext context) |
void |
processEvent(ComponentSystemEvent event) |
void |
processRestoreState(FacesContext context,
Object state) |
Object |
processSaveState(FacesContext context) |
void |
processUpdates(FacesContext context) |
void |
processValidators(FacesContext context) |
protected void |
propagateParametersToPageBean(BaseViewBean pageBean)
Propagates non-content param values from this control
to the appropriate properties of the specified page bean.
|
protected void |
reloadViewIfChanged()
If the viewId does not match what was previously loaded, reload the imported view
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setValue(Object value) |
boolean |
visitTree(VisitContext context,
VisitCallback callback) |
createUniqueId, getFamily, getSeparatorChar
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacets, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, 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, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTransient, setTransient
protected static final String VIEW_LOADED
protected static final String VIEW_CHECKED_FORM_NESTING
public static final String PARAM_ID_PREFIX
protected Integer fInstanceNumber
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
public void afterPhase(PhaseEvent event)
afterPhase
in interface PhaseListener
public void beforePhase(PhaseEvent event)
beforePhase
in interface PhaseListener
protected void reloadViewIfChanged()
public PhaseId getPhaseId()
getPhaseId
in interface PhaseListener
public void postPageBeforePhase(PhaseEvent event)
postPageBeforePhase
in interface IPostPageComponentPhaseListener
public void postPageAfterPhase(PhaseEvent event)
postPageAfterPhase
in interface IPostPageComponentPhaseListener
public PhaseId getPostPagePhaseId()
getPostPagePhaseId
in interface IPostPageComponentPhaseListener
protected static ImportTemplate getImportContainer(FacesContext context, UIComponent component)
context
- Current context.component
- Component whose import control to find.protected void importView(String viewId)
protected void clearComponentBeans(UIComponent component)
protected void propagateParametersToPageBean(BaseViewBean pageBean)
public Object getValue()
public void setValue(Object value)
public BaseViewBean getViewPageBean()
protected Object getInternalPageBean()
@Deprecated protected String getInternalPageBeanName()
getPageBeanName()
insteadprotected String getPageBeanName()
public boolean getRendersChildren()
getRendersChildren
in class UIComponentBase
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class UIComponentBase
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIComponentBase
IOException
public void processDecodes(FacesContext context)
processDecodes
in class UIComponentBase
public void processRestoreState(FacesContext context, Object state)
processRestoreState
in class UIComponentBase
public Object processSaveState(FacesContext context)
processSaveState
in class UIComponentBase
public void processUpdates(FacesContext context)
processUpdates
in class UIComponentBase
public void processValidators(FacesContext context)
processValidators
in class UIComponentBase
public boolean visitTree(VisitContext context, VisitCallback callback)
visitTree
in class UINamingContainer
public String getScopedVariableName()
IScopedVariableComponent
getScopedVariableName
in interface IScopedVariableComponent
public Object getScopedVariable()
IScopedVariableComponent
getScopedVariable
in interface IScopedVariableComponent
public void processEvent(ComponentSystemEvent event) throws AbortProcessingException
processEvent
in interface ComponentSystemEventListener
processEvent
in class UIComponent
AbortProcessingException
protected void handleNestedForms()
public void populateInitialComponents()
IDynamicComponent
populateInitialComponents
in interface IDynamicComponent
public int getFacetCount()
getFacetCount
in class UIComponentBase
public Iterator<UIComponent> getFacetsAndChildren()
getFacetsAndChildren
in class UIComponentBase