Class 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:
  • Field Details

    • fCompositeNamingContainer

      protected transient UIComponent fCompositeNamingContainer
      Reference to the container UIComponent 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, the ValueBinding for the specified name, or the default value.

      This method will return null only if the defaultValue is null.

      Parameters:
      name - Property name.
      expectedType - The Class for type-converting the return value
      specifiedValue - User-specified value.
      defaultValue - Default value.
      Returns:
      Value in an Object of type defined by expectedType
    • setCompositeViewNamingContainer

      public void setCompositeViewNamingContainer(UIComponent namingContainer)
      Sets the container UIComponent for this composite view control.
      Specified by:
      setCompositeViewNamingContainer in interface ICompositeViewControlPageBean
      See Also:
    • getCompositeViewNamingContainer

      public UIComponent getCompositeViewNamingContainer()
      Get the container UIComponent of the composite view control.
      Returns:
      UIComponent of the composite view control, or null if not found
    • getCompositeViewControlId

      public String getCompositeViewControlId()
      Return the id of the composite view control.
      Returns:
      the id of the composite view control, or null if not found
    • getCompositeViewAbsoluteControlId

      public String 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

      public IContentProvider 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 class BaseViewBean
      Returns:
      instance of the content provider for ID mapping.
    • findComponentInRoot

      public UIComponent findComponentInRoot(String id)
      Overriding to treat the composite view naming container as the root control instead of the view root.
      Overrides:
      findComponentInRoot in class BaseViewBean
      Parameters:
      id - the component id
      Returns:
      UIComponent or null if not found
      See Also: