Examples of ValueBinding


Examples of javax.faces.el.ValueBinding

  }
 
   
  public java.lang.String getPreferenceeditable(){
    java.lang.String value = null;
    ValueBinding vb = getValueBinding("preferenceeditable");
       if (vb != null) {
      return (java.lang.String)(vb.getValue(getFacesContext()));
       }
    else {
      value = this.preferenceeditable;
    }
    return value;
View Full Code Here

Examples of org.jboss.seam.core.Expressions.ValueBinding

      this.name = name;
   }
  
   public boolean isFilterEnabled()
   {
      ValueBinding enabledValueBinding = getEnabled();
      if (enabledValueBinding==null)
      {
         return true;
      }
      else
      {
         Boolean enabled = (Boolean) enabledValueBinding.getValue();
         return enabled!=null && enabled;
      }
   }
View Full Code Here

Examples of wyvern.tools.typedAST.core.binding.evaluation.ValueBinding

  public Value evaluateApplication(Application app, Environment argEnv) {
    Value argValue = app.getArgument().evaluate(argEnv);
    Environment bodyEnv = env;
    List<NameBinding> bindings = function.getArgBindings();
    if (bindings.size() == 1)
      bodyEnv = bodyEnv.extend(new ValueBinding(bindings.get(0).getName(), argValue));
    else if (bindings.size() > 1 && argValue instanceof TupleValue)
      for (int i = 0; i < bindings.size(); i++)
        bodyEnv = bodyEnv.extend(new ValueBinding(bindings.get(i).getName(), ((TupleValue)argValue).getValue(i)));
    else if (bindings.size() != 0)
      throw new RuntimeException("Something bad happened!");
   
    return function.getBody().evaluate(bodyEnv);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.