Package org.springframework.webflow.execution

Examples of org.springframework.webflow.execution.RequestContext


      return false;
    }
  }

  public void setValue(ELContext context, Object base, Object property, Object value) {
    RequestContext requestContext = getRequestContext();
    if (base != null || requestContext == null) {
      return;
    }
    if (ImplicitVariables.matches(property)) {
      context.setPropertyResolved(true);
View Full Code Here


  public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
    return null;
  }

  public Class<?> getType(ELContext context, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return null;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      context.setPropertyResolved(true);
View Full Code Here

    }
    return null;
  }

  public Object getValue(ELContext context, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return null;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      context.setPropertyResolved(true);
View Full Code Here

    }
    return null;
  }

  public boolean isReadOnly(ELContext context, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return false;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      context.setPropertyResolved(true);
View Full Code Here

    }
    return false;
  }

  public void setValue(ELContext context, Object base, Object property, Object value) {
    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      throw new PropertyNotWritableException("The '" + RESOURCE_BUNDLE_KEY
View Full Code Here

  public SpringBeanWebFlowELResolver(RequestContext context) {
    this.requestContext = context;
  }

  protected BeanFactory getBeanFactory(ELContext elContext) {
    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return EMPTY_BEAN_FACTORY;
    }
    BeanFactory beanFactory = requestContext.getActiveFlow().getApplicationContext();
    return beanFactory != null ? beanFactory : EMPTY_BEAN_FACTORY;
  }
View Full Code Here

  public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException {
    throw new AccessException("Beans in a BeanFactory are read-only");
  }

  protected BeanFactory getBeanFactory() {
    RequestContext requestContext = RequestContextHolder.getRequestContext();
    if (requestContext != null) {
      BeanFactory beanFactory = requestContext.getActiveFlow().getApplicationContext();
      if (beanFactory != null) {
        return beanFactory;
      }
    }
    return EMPTY_BEAN_FACTORY;
View Full Code Here

  public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext elContext, Object base) {
    return null;
  }

  public Class<?> getType(ELContext elContext, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (base != null || requestContext == null) {
      return null;
    }
    String attributeName = property.toString();
    if (requestContext.getRequestScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getRequestScope().get(attributeName).getClass();
    } else if (requestContext.getFlashScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getFlashScope().get(attributeName).getClass();
    } else if (requestContext.inViewState() && requestContext.getViewScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getViewScope().get(attributeName).getClass();
    } else if (requestContext.getFlowScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getFlowScope().get(attributeName).getClass();
    } else if (requestContext.getConversationScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getConversationScope().get(attributeName).getClass();
    } else {
      return null;
    }
  }
View Full Code Here

      return null;
    }
  }

  public Object getValue(ELContext elContext, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (base != null || requestContext == null) {
      return null;
    }
    String attributeName = property.toString();
    if (requestContext.getRequestScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getRequestScope().get(attributeName);
    } else if (requestContext.getFlashScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getFlashScope().get(attributeName);
    } else if (requestContext.inViewState() && requestContext.getViewScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getViewScope().get(attributeName);
    } else if (requestContext.getFlowScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getFlowScope().get(attributeName);
    } else if (requestContext.getConversationScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return requestContext.getConversationScope().get(attributeName);
    } else {
      return null;
    }
  }
View Full Code Here

      return null;
    }
  }

  public boolean isReadOnly(ELContext elContext, Object base, Object property) {
    RequestContext requestContext = getRequestContext();
    if (base != null || requestContext == null) {
      return false;
    }
    String attributeName = property.toString();
    if (requestContext.getRequestScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return false;
    } else if (requestContext.getFlashScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return false;
    } else if (requestContext.inViewState() && requestContext.getViewScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return false;
    } else if (requestContext.getFlowScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return false;
    } else if (requestContext.getConversationScope().contains(attributeName)) {
      elContext.setPropertyResolved(true);
      return false;
    } else {
      return false;
    }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.RequestContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.