Package com.sun.jsftemplating.layout.descriptors

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


  }

  // 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

        // 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

        }
       
        // 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

  // 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

      LayoutComponent desc = getLayoutComponent();
      Object val = desc.getOption("children");
      if (val == null) {
    throw new IllegalArgumentException("'children' must be specified!");
      }
      val = desc.resolveValue(ctx, getParentUIComponent(), val.toString());
      if ((val != null) && (val instanceof Map)) {
    _childMap = (Map<String, Object>) val;
    val = new ArrayList<Object>(_childMap.keySet());
                Collections.sort((List)val);
      }
View Full Code Here

  // 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(ctx, link, val);
      link.getAttributes().put("url", val);
      imageLink.getAttributes().put("url", val);
  }

  // Set the image URL
View Full Code Here

  }

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

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

      LayoutComponent desc = getLayoutComponent();
      Object val = desc.getOption("children");
      if (val == null) {
    throw new IllegalArgumentException("'children' must be specified!");
      }
      val = desc.resolveValue(ctx, getParentUIComponent(), val.toString());
      if ((val != null) && (val instanceof Map)) {
    _childMap = (Map<String, Object>) val;
    val = new ArrayList<Object>(_childMap.keySet());
                Collections.sort((List)val);
      }
View Full Code Here

  // 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(ctx, link, val);
      link.getAttributes().put("url", val);
      imageLink.getAttributes().put("url", val);
  }

  // Set the image URL
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.