@Override public FlowHandler getFlowHandler() { return delegate().getFlowHandler(); }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
@Override public FlowHandler getFlowHandler() { return getWrapped().getFlowHandler(); }
public Flow getCurrentFlow(FacesContext facesContext) { if (currentFlows != null && !currentFlows.isEmpty()) { return currentFlows.get(currentFlows.size()-1); } else { FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); return flowHandler.getCurrentFlow(facesContext); } }
public String getLastDisplayedViewId(FacesContext facesContext, Flow flow) { FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); return flowHandler.getLastDisplayedViewId(facesContext); } }
/** * @since 2.2 * @return */ public FlowHandler getFlowHandler() { Application application = getMyfacesApplicationInstance(); if (application != null) { return application.getFlowHandler(); } throw new UnsupportedOperationException(); }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
@Bean("flowScope") @ConditionalOnMissingBean(name = "flowScope") @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.INTERFACES) public Map<Object, Object> flowScope() { return FacesContext.getCurrentInstance().getApplication().getFlowHandler().getCurrentFlowScope(); }
@Override public FlowHandler getFlowHandler() { return getWrapped().getFlowHandler(); }
public void finish(FacesContext facesContext) { // Get back flowHandler to its original state for (int i=0; i < returnCount; i++) { FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); flowHandler.popReturnMode(facesContext); } returnCount = 0; }
public boolean isActive(FacesContext facesContext) { if (facesContext == null) { return false; } Flow flow = facesContext.getApplication(). getFlowHandler().getCurrentFlow(facesContext); return flow != null; }
private static Flow getCurrentFlow(FacesContext context) { FlowHandler flowHandler = context.getApplication().getFlowHandler(); if (null == flowHandler) { return null; } Flow result = flowHandler.getCurrentFlow(context); return result; }
@Override public FlowHandler getFlowHandler() { return getWrapped().getFlowHandler(); }
@Override public Object getValue(ELContext context) { FacesContext facesContext = facesContext(context); return facesContext.getApplication().getFlowHandler().getCurrentFlowScope(); }
public String getCurrentClientWindowFlowId(FacesContext facesContext) { String flowMapKey = null; FlowHandler flowHandler = facesContext.getApplication().getFlowHandler(); Flow flow = flowHandler.getCurrentFlow(facesContext); if (flow != null) { flowMapKey = FlowUtils.getFlowMapKey(facesContext, flow); } return flowMapKey; }
public JsfArtifactFlowMapProducer(BeanManager beanManager) { super(beanManager); super.name("flowScope") .scope(FlowScoped.class) .qualifiers(new FlowMapAnnotationLiteral()) .types(new ParameterizedTypeImpl(Map.class, new Type[] { Object.class, Object.class }), Map.class, Object.class) .beanClass(Map.class) .create(e -> FacesContext.getCurrentInstance().getApplication().getFlowHandler().getCurrentFlowScope()); } }
public FlowMapProducer() { super.name("flowScope") .scope(FlowScoped.class) .qualifiers(new FlowMapAnnotationLiteral()) .types( new ParameterizedTypeImpl(Map.class, new Type[]{Object.class, Object.class}), Map.class, Object.class) .beanClass(Map.class) .create(e -> FacesContext.getCurrentInstance().getApplication().getFlowHandler().getCurrentFlowScope()); }
public FlowMapProducer() { super.name("flowScope") .scope(FlowScoped.class) .qualifiers(new FlowMapAnnotationLiteral()) .types( new ParameterizedTypeImpl(Map.class, new Type[]{Object.class, Object.class}), Map.class, Object.class) .beanClass(Map.class) .create(e -> FacesContext.getCurrentInstance().getApplication().getFlowHandler().getCurrentFlowScope()); }
public FlowMapProducer() { super.name("flowScope") .scope(FlowScoped.class) .qualifiers(new FlowMapAnnotationLiteral()) .types( new ParameterizedTypeImpl(Map.class, new Type[]{Object.class, Object.class}), Map.class, Object.class) .beanClass(Map.class) .create(e -> FacesContext.getCurrentInstance().getApplication().getFlowHandler().getCurrentFlowScope()); }