Class BaseSearchResultOptionsPageBean
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.BasePortletPageBean
com.webmethods.caf.faces.bean.search.BaseSearchResultOptionsPageBean
- All Implemented Interfaces:
IPageFlowScopeAdapter
,Serializable
,EventListener
,PhaseListener
,HttpSessionBindingListener
- Direct Known Subclasses:
BaseToggleSearchResultOptionsPageBean
Base page bean for search result options pages
- 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 List<SelectItem>
List of sortable columnsprotected List<SelectItem>
List of viewable columnsFields 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 TypeMethodDescriptionprotected void
Overrides the default behavior to load information about the available table columnsAction handler for the 'Cancel' button in the search options UI.protected Object
getPortletConfig
(ExternalContext externalContext) protected abstract String
Returns the id of the search result table controlprotected String
Returns the id of the search results viewReturns the list of sortable columnsReturns the list of viewable columnsboolean
Returns whether there are any sortable columns in the search results tableprotected void
Loads the column information from the search results viewprotected void
loadColumnInfoForControl
(DataTable dataTable, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList) Loads the column info details for the supplied data table.protected void
loadColumnInfoForControl
(String controlId, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList) Loads the column info for the requested controlAction handler for the 'Save' button in the search options UI.Methods inherited from class com.webmethods.caf.faces.bean.BasePortletPageBean
beforeWorkspaceLoad, callInitialize, clearNavigationState, createActionUrl, createRenderUrl, getActivePreferencesBean, getPreferences, getRequestID, gotoPage, switchToPortletMode
Methods inherited from class com.webmethods.caf.faces.bean.BaseViewBean
afterApplyRequestValues, afterInvokeApplication, afterPhase, afterProcessValidations, afterRenderResponse, afterRestoreView, afterUpdateModelValues, beforeApplyRequestValues, beforeInvokeApplication, beforePhase, beforeProcessValidations, beforeRestoreView, beforeUpdateModelValues, findComponent, findComponentInRoot, getApplicationScope, getClientIds, getPhaseId, getRealPath, getRequestParam, getRequestScope, getSessionScope, 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
-
fSortableColumnList
List of sortable columns -
fViewableColumnList
List of viewable columns
-
-
Constructor Details
-
BaseSearchResultOptionsPageBean
public BaseSearchResultOptionsPageBean()
-
-
Method Details
-
beforeRenderResponse
protected void beforeRenderResponse()Overrides the default behavior to load information about the available table columns- Overrides:
beforeRenderResponse
in classBaseViewBean
- See Also:
-
getSortableColumnList
Returns the list of sortable columns- Returns:
- list of sortable columns
-
getViewableColumnList
Returns the list of viewable columns- Returns:
- list of viewable columns
-
loadColumnInfo
protected void loadColumnInfo()Loads the column information from the search results view -
getPortletConfig
-
loadColumnInfoForControl
protected void loadColumnInfoForControl(String controlId, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList) Loads the column info for the requested control- Parameters:
viewableColumnList
- list where the viewable columns are addedsortableColumnList
- list where the sortable columns are added
-
loadColumnInfoForControl
protected void loadColumnInfoForControl(DataTable dataTable, List<SelectItem> viewableColumnList, List<SelectItem> sortableColumnList) Loads the column info details for the supplied data table. Subclasses may override to extend.- Parameters:
dataTable
- the table component to inspectviewableColumnList
- list where the viewable columns are addedsortableColumnList
- list where the sortable columns are added- Since:
- 9.9
-
getSearchResultControlId
Returns the id of the search result table control- Returns:
- the id of the search result table control
-
getSearchResultsViewId
Returns the id of the search results view- Returns:
- the id of the search results view
-
isSortable
public boolean isSortable()Returns whether there are any sortable columns in the search results table- Returns:
- true if there are sortable columns, false otherwise
-
persistDisplayOptions
Action handler for the 'Save' button in the search options UI. By default, it will persist the search options chosen by the user and switch to the 'view' portlet mode.- Returns:
- status of the action handler
- Throws:
javax.portlet.PortletModeException
-
cancelDisplayOptions
Action handler for the 'Cancel' button in the search options UI. By default it will switch the portlet back to the 'view' mode.- Returns:
- status of the action handler
- Throws:
javax.portlet.PortletModeException
-