Class AbstractCompositeViewControl
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIPanel
com.webmethods.caf.faces.component.panel.BaseHideablePanel
com.webmethods.caf.faces.component.AbstractCompositeViewControl
- All Implemented Interfaces:
IDynamicComponent
,IHideablePanel
,ILazyHideablePanel
,IPostPageComponentPhaseListener
,IScopedVariableComponent
,ITableRowStateHolder
,Serializable
,EventListener
,NamingContainer
,PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,PhaseListener
,SystemEventListenerHolder
- Direct Known Subclasses:
AbstractCompositeViewModalDialog
,AttachmentsList
,AttachmentsPanel
,ExportTableButton
,PeopleSwapBox
,SearchBar
public abstract class AbstractCompositeViewControl
extends BaseHideablePanel
implements PhaseListener, NamingContainer, IPostPageComponentPhaseListener, IScopedVariableComponent, IDynamicComponent
This base class can be used to help expose a prototyped .view + page bean as a control.
NOTE: The supplied .view file should not be binding anything to portlet preferences as the control may
be used outside the scope of a specific portlet.
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Nested classes/interfaces inherited from class com.webmethods.caf.faces.component.panel.BaseHideablePanel
BaseHideablePanel.PropertyKeys
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Serializable,
Object> protected static final String
protected Integer
protected String
protected String
static final String
Fields inherited from class com.webmethods.caf.faces.component.panel.BaseHideablePanel
ATTR_CENTER, ATTR_DEFAULT_COMMAND, ATTR_DEFAULT_FOCUS, ATTR_DISABLE_WHEN_HIDDEN, ATTR_HIDE_EFFECT, ATTR_HIDE_EFFECT_OPTIONS, ATTR_OPACITY, ATTR_PROGRESS_DELAY, ATTR_PROGRESS_FLASH_ON_COMPLETE, ATTR_PROGRESS_MSG, ATTR_PROGRESS_USE_HIDE_SHOW_EFFECT, ATTR_SHOW_EFFECT, ATTR_SHOW_EFFECT_OPTIONS, m_savedSuppressed, m_savedVisible, TYPE
Fields inherited from class javax.faces.component.UIPanel
COMPONENT_FAMILY, COMPONENT_TYPE
Fields inherited from class javax.faces.component.UIComponent
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
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractCompositeViewControl
(String viewResourcePath, String prototypedPageBeanName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterPhase
(PhaseEvent event) protected void
Apply any changes in the deferred properties map to the underlying controls.protected void
protected void
associateControlWithBean
(Object pageBean) void
beforePhase
(PhaseEvent event) void
protected abstract Serializable
void
encodeBegin
(FacesContext context) void
encodeChildren
(FacesContext context) void
encodeEnd
(FacesContext context) void
Loads the embedded view as as children of this control, if the view has not already been loaded.protected Map<Serializable,
Object> protected Object
protected Object
getInternalPageBean
(boolean createIfMissing) protected String
Deprecated.Return the names of the page beans to replace when the binding expressions in the .view file are re-written.Gets the scoped variable objectGet the name of the scoped variableprotected void
Imports the children from the view to this controlprotected void
void
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) protected void
processLoadView
(String viewResourcePath) void
processRestoreState
(FacesContext context, Object state) processSaveState
(FacesContext context) void
processUpdates
(FacesContext context) void
processValidators
(FacesContext context) void
restoreState
(FacesContext context, Object state) saveState
(FacesContext context) boolean
visitTree
(VisitContext context, VisitCallback callback) Methods inherited from class com.webmethods.caf.faces.component.panel.BaseHideablePanel
decode, findSuppressed, getRendersChildren, getSuppressInputs, getTableRowState, isAncestorOrSelf, isDisableWhenHidden, isLazy, isRefreshOnShow, isTwoPass, isVisible, setDisableWhenHidden, setLazy, setRefreshOnShow, setSuppressInputs, setTableRowState, setTwoPass, setVisible
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, 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, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
-
Field Details
-
ATTR__VIEW_LOADED
- See Also:
-
PORTLET_VIEW_ID
- See Also:
-
_deferredPropertiesMap
-
fPrototypedPageBeanName
-
fViewResourcePath
-
fInstanceNumber
-
-
Constructor Details
-
AbstractCompositeViewControl
-
-
Method Details
-
getDeferredPropertiesMap
-
getInternalPageBeanName
Deprecated.Kept for backward compatibility. Use getPageBeanName instead.- Returns:
-
getInternalPageBean
-
getInternalPageBean
-
getPageNamesToReplaceInBindingExpressions
Return the names of the page beans to replace when the binding expressions in the .view file are re-written. -
createPageBean
-
clearPageBean
public void clearPageBean() -
loadView
-
processLoadView
-
importChildrenFromView
Imports the children from the view to this control- Parameters:
view
- the imported view- See Also:
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIComponentBase
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIComponentBase
-
ensureEmbeddedViewIsLoaded
public void ensureEmbeddedViewIsLoaded()Loads the embedded view as as children of this control, if the view has not already been loaded. -
beforePhase
- Specified by:
beforePhase
in interfacePhaseListener
-
afterPhase
- Specified by:
afterPhase
in interfacePhaseListener
-
getPhaseId
- Specified by:
getPhaseId
in interfacePhaseListener
-
associateControlWithBean
protected void associateControlWithBean() -
associateControlWithBean
-
getPostPagePhaseId
- Specified by:
getPostPagePhaseId
in interfaceIPostPageComponentPhaseListener
-
postPageBeforePhase
- Specified by:
postPageBeforePhase
in interfaceIPostPageComponentPhaseListener
-
postPageAfterPhase
- Specified by:
postPageAfterPhase
in interfaceIPostPageComponentPhaseListener
-
encodeBegin
- Overrides:
encodeBegin
in classBaseHideablePanel
- Throws:
IOException
-
encodeChildren
- Overrides:
encodeChildren
in classBaseHideablePanel
- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEnd
in classBaseHideablePanel
- Throws:
IOException
-
processDecodes
- Overrides:
processDecodes
in classBaseHideablePanel
-
processRestoreState
- Overrides:
processRestoreState
in classUIComponentBase
-
processSaveState
- Overrides:
processSaveState
in classUIComponentBase
-
processUpdates
- Overrides:
processUpdates
in classBaseHideablePanel
-
processValidators
- Overrides:
processValidators
in classBaseHideablePanel
-
visitTree
- Overrides:
visitTree
in classUIComponent
-
getScopedVariableName
Description copied from interface:IScopedVariableComponent
Get the name of the scoped variable- Specified by:
getScopedVariableName
in interfaceIScopedVariableComponent
- Returns:
-
getScopedVariable
Description copied from interface:IScopedVariableComponent
Gets the scoped variable object- Specified by:
getScopedVariable
in interfaceIScopedVariableComponent
- Returns:
- variable object
-
processEvent
- Specified by:
processEvent
in interfaceComponentSystemEventListener
- Overrides:
processEvent
in classUIComponent
- Throws:
AbortProcessingException
-
populateInitialComponents
public void populateInitialComponents()Description copied from interface:IDynamicComponent
Perform the initial programmatic manipulation of the component tree.- Specified by:
populateInitialComponents
in interfaceIDynamicComponent
-
applyDeferredProperties
protected void applyDeferredProperties()Apply any changes in the deferred properties map to the underlying controls.
-