private void generateKeyForCDIBeansBelongToAFlow(FacesContext facesContext, Flow flow, int flowDepth) { if (null != flow) { ClientWindow curWindow = facesContext.getExternalContext().getClientWindow(); if (null == curWindow) { throw new IllegalStateException("Unable to obtain current ClientWindow. Is the ClientWindow feature enabled?"); } final String clientWindow = flow.getClientWindowFlowId(curWindow); flowBeansForClientWindowKey = clientWindow + ":" + flowDepth + "_beans"; creationalForClientWindowKey = clientWindow + ":" + flowDepth + "_creational"; } else { flowBeansForClientWindowKey = creationalForClientWindowKey = null; } }
private void generateKeyForCDIBeansBelongToAFlow(FacesContext facesContext, Flow flow, int flowDepth) { if (null != flow) { ClientWindow curWindow = facesContext.getExternalContext().getClientWindow(); if (null == curWindow) { throw new IllegalStateException("Unable to obtain current ClientWindow. Is the ClientWindow feature enabled?"); } final String clientWindow = flow.getClientWindowFlowId(curWindow); flowBeansForClientWindowKey = clientWindow + ":" + flowDepth + "_beans"; creationalForClientWindowKey = clientWindow + ":" + flowDepth + "_creational"; } else { flowBeansForClientWindowKey = creationalForClientWindowKey = null; } }
private void generateKeyForCDIBeansBelongToAFlow(FacesContext facesContext, Flow flow, int flowDepth) { if (null != flow) { ClientWindow curWindow = facesContext.getExternalContext().getClientWindow(); if (null == curWindow) { throw new IllegalStateException("Unable to obtain current ClientWindow. Is the ClientWindow feature enabled?"); } final String clientWindow = flow.getClientWindowFlowId(curWindow); flowBeansForClientWindowKey = clientWindow + ":" + flowDepth + "_beans"; creationalForClientWindowKey = clientWindow + ":" + flowDepth + "_creational"; } else { flowBeansForClientWindowKey = creationalForClientWindowKey = null; } }
private void generateKeyForCDIBeansBelongToAFlow(FacesContext facesContext, Flow flow, int flowDepth) { if (null != flow) { ClientWindow curWindow = facesContext.getExternalContext().getClientWindow(); if (null == curWindow) { throw new IllegalStateException("Unable to obtain current ClientWindow. Is the ClientWindow feature enabled?"); } final String clientWindow = flow.getClientWindowFlowId(curWindow); flowBeansForClientWindowKey = clientWindow + ":" + flowDepth + "_beans"; creationalForClientWindowKey = clientWindow + ":" + flowDepth + "_creational"; } else { flowBeansForClientWindowKey = creationalForClientWindowKey = null; } }
public static String getFlowMapKey(FacesContext facesContext, Flow flow) { String flowMapKey = flow.getClientWindowFlowId( facesContext.getExternalContext().getClientWindow()); int flowIndex = getFlowIndex(facesContext, flow); if (flowIndex > 0) { flowMapKey = flowMapKey + "_" + flowIndex; } return flowMapKey; }