Examples of resolveValue()


Examples of com.adaptiweb.utils.ci.VariableResolver.resolveValue()

  @Test
  public void testAvoidTrimSubstitution() {
    VariableSource sourceA = variableSource("a= ${b} ","b= . ");
    VariableResolver tested = new VariableResolver(sourceA);
   
    assertEquals("  .  ", tested.resolveValue("a"));
  }
 
  @Test(expected=IllegalStateException.class)
  public void testMissingSubstitution() {
    VariableSource sourceA = variableSource("a=$b","b=${x}");
View Full Code Here

Examples of com.adaptiweb.utils.ci.VariableResolver.resolveValue()

  @Test(expected=IllegalStateException.class)
  public void testMissingSubstitution() {
    VariableSource sourceA = variableSource("a=$b","b=${x}");
    VariableResolver tested = new VariableResolver(sourceA);
   
    assertEquals("  .  ", tested.resolveValue("a"));
  }
 
  private static VariableSource variableSource(String...definitions) {
    Map<String, String> result = new HashMap<String, String>(definitions.length);
   
View Full Code Here

Examples of com.sun.jsftemplating.component.ComponentUtil.resolveValue()

  setOptions(context, descriptor, comp);

  // Check to see if the user is passing in Lists to be converted to a
  // List of Option objects for the "items" property.
  ComponentUtil compUtil = ComponentUtil.getInstance(context);
  Object labels = compUtil.resolveValue(
    context, descriptor, comp, descriptor.getOption("labels"));
  if (labels != null) {
      List optionList = new ArrayList();
      Object values = compUtil.resolveValue(
        context, descriptor, comp, descriptor.getOption("values"));
View Full Code Here

Examples of com.sun.jsftemplating.component.ComponentUtil.resolveValue()

  ComponentUtil compUtil = ComponentUtil.getInstance(context);
  Object labels = compUtil.resolveValue(
    context, descriptor, comp, descriptor.getOption("labels"));
  if (labels != null) {
      List optionList = new ArrayList();
      Object values = compUtil.resolveValue(
        context, descriptor, comp, descriptor.getOption("values"));
      if (values == null) {
    values = labels;
      }
View Full Code Here

Examples of com.sun.jsftemplating.component.ComponentUtil.resolveValue()

  // Set all the attributes / properties
  setOptions(context, descriptor, comp);

  // Handle "data" option specially...
  ComponentUtil compUtil = ComponentUtil.getInstance(context);
  Object data = compUtil.resolveValue(
    context, descriptor, comp, descriptor.getOption("data"));
  if (data != null) {
      // Create a DataProvider
      if (!(data instanceof List)) {
    throw new IllegalArgumentException("TableRowGroupFactory "
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.resolveValue()

  // Check to see if we have a childURL, evalute it here (after component
  // is created, before rendered) so we can use the link itself to define
  // the URL.  This has proven to be useful...
  Object val = desc.getOption("childURL");
  if (val != null) {
      val = desc.resolveValue(
    FacesContext.getCurrentInstance(), link, val);
      link.getAttributes().put("url", val);
      imageLink.getAttributes().put("url", val);
  }
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.resolveValue()

  }

  // Set the image URL
  val = desc.getOption("childImageURL");
  if (val != null) {
      imageLink.getAttributes().put("imageURL", desc.
    resolveValue(FacesContext.getCurrentInstance(), link, val));
  }

  // Set href's handlers...
  // We do it this way rather than earlier b/c the factory will not
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.resolveValue()

        // Check to see if we have a childURL, evalute it here (after component
        // is created, before rendered) so we can use the link itself to define
        // the URL.  This has proven to be useful...
        Object val = desc.getOption("childURL");
        if (val != null) {
            val = desc.resolveValue(
                    FacesContext.getCurrentInstance(), link, val);
            link.getAttributes().put("url", val);
            imageLink.getAttributes().put("url", val);
        }
       
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.resolveValue()

        }
       
        // Set the image URL
        val = desc.getOption("childImageURL");
        if (val != null) {
            imageLink.getAttributes().put("imageURL", desc.
                    resolveValue(FacesContext.getCurrentInstance(), link, val));
        }
       
        // Set href's handlers...
        // We do it this way rather than earlier b/c the factory will not
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutComponent.resolveValue()

  // Check to see if we have a childURL, evalute it here (after component
  // is created, before rendered) so we can use the link itself to define
  // the URL.  This has proven to be useful...
  Object val = desc.getOption("childURL");
  if (val != null) {
      link.getAttributes(). put("url", desc.resolveValue(
      FacesContext.getCurrentInstance(), link, val));
  }

  // Set href's handlers...
  // We do it this way rather than earlier b/c the factory will not
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.