Bridge.PORTLET_LIFECYCLE_PHASE);
if (null == portletPhase && phaseId.equals(PhaseId.RENDER_RESPONSE)) {
// For a servlet phase, put all portletbridge-related parameters
// back to ajaxContext.
BridgeRequestScope windowState = null;
PortletBridgeContext bridgeContext = (PortletBridgeContext) context
.getExternalContext().getRequestMap().get(
PortletBridgeContext.REQUEST_PARAMETER_NAME);
if (null != bridgeContext) {
windowState = bridgeContext.getRequestScope();
}
if (null != ajaxContext && null != windowState) {
Map<String,Object> commonAjaxParameters = ajaxContext.getCurrentInstance(
context).getCommonAjaxParameters();
commonAjaxParameters.put(RequestScopeManager.STATE_ID_PARAMETER,
bridgeContext.getStateId().toString());
commonAjaxParameters.put(
AjaxPortletBridge.AJAX_NAMESPACE_PARAMETER, windowState
.getNamespace());
}
}
}