There are various methods you can override in your page bean to hook into the different places in the lifecycle of a request. See the javadocs @ [url]http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_sp2/My_webMethods/8-2-SP1_CAF_and_MWS_Java_API_Reference/com/webmethods/caf/faces/bean/BasePortletPageBean.html[/url]
For example, to do something every time a workspace is loaded (by navigation, clicking a tab or a link in the leftnav):
/* (non-Javadoc)
* @see com.webmethods.caf.faces.bean.BasePortletPageBean#beforeWorkspaceLoad(javax.portlet.ActionRequest, javax.portlet.ActionResponse, java.lang.String)
*/
@Override
public void beforeWorkspaceLoad(ActionRequest request,
ActionResponse response, String navigationType) {
// TODO do any additional work before the workspace loads
super.beforeWorkspaceLoad(request, response, navigationType);
}
Or, to do something every time the portlet is rendered.
/* (non-Javadoc)
* @see com.webmethods.caf.faces.bean.BaseViewBean#beforeRenderResponse()
*/
@Override
protected void beforeRenderResponse() {
// TODO do any additional work before the portlet is rendered
super.beforeRenderResponse();
}
#webMethods-BPMS#MWS-CAF-Task-Engine#webMethods