//return null to force a new window id - e.g. in case of #{currentWindow.useNewId}
return null;
}
//try to restore id from component
WindowContextIdHolderComponent windowContextIdHolder = getWindowContextIdHolderComponent(facesContext);
if (windowContextIdHolder != null)
{
//TODO cache for request
id = windowContextIdHolder.getWindowContextId();
if(id != null && !cacheWindowId(externalContext, id, allowUnknownWindowIds))
{
id = null;
}
if(id != null)
{
requestMap.put(WindowContextManager.WINDOW_CONTEXT_ID_PARAMETER_KEY,
windowContextIdHolder.getWindowContextId());
}
}
return id;
}