Package com.webmethods.caf.faces.bean
Class BaseCompositeViewControlPageBean
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.bean.BaseViewBean
com.webmethods.caf.faces.bean.BaseCompositeViewControlPageBean
- All Implemented Interfaces:
IPageFlowScopeAdapter
,ICompositeViewControlPageBean
,Serializable
,EventListener
,PhaseListener
,HttpSessionBindingListener
- Direct Known Subclasses:
AttachmentsPage
,ExportTableButtonView
,PeoplePickerDialogBean
,PeopleSwapBoxBean
,PersonCalendarDialogBean
,PersonProfileDialogBean
,PrincipalPickerControlBean
,ResourcePickerControlBean
,SearchBarControlBean
public class BaseCompositeViewControlPageBean
extends BaseViewBean
implements ICompositeViewControlPageBean
Base class for a page bean that is to be used for a composite view control
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webmethods.caf.faces.bean.BaseViewBean
BaseViewBean.ClientIdsContentProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UIComponent
Reference to the containerUIComponent
of the composite view control.Fields inherited from class com.webmethods.caf.faces.bean.BaseViewBean
clientIds, initialized
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverriding to treat the composite view naming container as the root control instead of the view root.Maps raw control ids to client-side element ids.Return the Absolute Control id of the composite view control.Return the id of the composite view control.Get the containerUIComponent
of the composite view control.protected Object
getPropertyOrBindingValue
(String name, Class<?> expectedType, Object specifiedValue, Object defaultValue) Gets property value using specified value, theValueBinding
for the specified name, or the default value.void
setCompositeViewNamingContainer
(UIComponent namingContainer) Sets the containerUIComponent
for this composite view control.Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterInvokeApplication, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRenderResponse, beforeRestoreView, beforeUpdateModelValues, callInitialize, findComponent, getApplicationScope, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, gotoPage, gotoPage, initialize, isAsyncRequest, preRenderResponse, release, resetPageFlowStorage, streamFileDataToResponse
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
fCompositeNamingContainer
Reference to the containerUIComponent
of the composite view control.
-
-
Constructor Details
-
BaseCompositeViewControlPageBean
public BaseCompositeViewControlPageBean()
-
-
Method Details
-
getPropertyOrBindingValue
protected Object getPropertyOrBindingValue(String name, Class<?> expectedType, Object specifiedValue, Object defaultValue) Gets property value using specified value, theValueBinding
for the specified name, or the default value.This method will return null only if the defaultValue is null.
- Parameters:
name
- Property name.expectedType
- TheClass
for type-converting the return valuespecifiedValue
- User-specified value.defaultValue
- Default value.- Returns:
- Value in an
Object
of type defined byexpectedType
-
setCompositeViewNamingContainer
Sets the containerUIComponent
for this composite view control.- Specified by:
setCompositeViewNamingContainer
in interfaceICompositeViewControlPageBean
- See Also:
-
getCompositeViewNamingContainer
Get the containerUIComponent
of the composite view control.- Returns:
UIComponent
of the composite view control, or null if not found
-
getCompositeViewControlId
Return the id of the composite view control.- Returns:
- the id of the composite view control, or null if not found
-
getCompositeViewAbsoluteControlId
Return the Absolute Control id of the composite view control.- Returns:
- the id of the composite view control, or null if not found
-
getClientIds
Maps raw control ids to client-side element ids.
For example, #{myPageBean.clientIds.myControlId} returns the client-side id (ie "wmp1234:zID3:myControlId") for the control with an id of 'myControlId'.
- Overrides:
getClientIds
in classBaseViewBean
- Returns:
- instance of the content provider for ID mapping.
-
findComponentInRoot
Overriding to treat the composite view naming container as the root control instead of the view root.- Overrides:
findComponentInRoot
in classBaseViewBean
- Parameters:
id
- the component id- Returns:
UIComponent
or null if not found- See Also:
-