Package org.zkoss.web.servlet.xel

Examples of org.zkoss.web.servlet.xel.RequestContext


  public Object resolveVariable(String name) throws XelException {
    final Object o = Labels.getLabel(name);
    if (o != null)
      return o;

    final RequestContext jc = RequestContexts.getCurrent();
    if (jc != null) {
      final VariableResolver parent = jc.getVariableResolver();
      if (parent != null)
        return parent.resolveVariable(name);
    }
    return null;
  }
View Full Code Here


   */
  public VariableResolver getVariableResolver(Object ref) {
    final Execution exec = Executions.getCurrent();
    VariableResolver resolver = exec.getVariableResolver();
    if (resolver == null) {
      final RequestContext rc = RequestContexts.getCurrent();
      if (rc != null)
        resolver = rc.getVariableResolver();
      if (resolver == null)
        return null;
    }
    if (resolver instanceof ExecutionResolver)
      ((ExecutionResolver)resolver).setSelf(ref);
View Full Code Here

TOP

Related Classes of org.zkoss.web.servlet.xel.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.