Examples of LayoutFacet


Examples of com.sun.jsftemplating.layout.descriptors.LayoutFacet

      if (nameNode == null) {
    throw new IllegalArgumentException("You must provide a name "
        + "attribute for all facets!  Parent component is: '"
        + parent.getUnevaluatedId() + "'.");
      }
      LayoutFacet facetElt =  new LayoutFacet(parent, nameNode.getNodeValue());

      // Determine if this is a facet place holder (i.e. we're defining
      // a renderer w/ a facet), or if it is a facet value to set on a
      // containing component.
      boolean isRendered =
    !LayoutElementUtil.isNestedLayoutComponent(facetElt);
      facetElt.setRendered(isRendered);
      element = facetElt;
  } else {
      LayoutComponent lc = null;
      ComponentType componentType = null;
      String nsURI = node.getNamespaceURI();
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutFacet

    id = id.substring(1, id.length() - 1).trim();
      }

      // Create new LayoutFacet
      LayoutElement parent = env.getParent();
      LayoutFacet facetElt =  new LayoutFacet(parent, id);
      parent.addChildLayoutElement(facetElt);

      // Determine if this is a facet place holder (i.e. we're defining
      // a renderer w/ a facet), or if it is a facet value to set on a
      // containing component.
      boolean isRendered =
    !LayoutElementUtil.isNestedLayoutComponent(facetElt);
      facetElt.setRendered(isRendered);
      if (singleTag && !isRendered && LogUtil.configEnabled()) {
    LogUtil.config((Object) this, "Facet (" + id
        + ") specified, however, there is no component specified "
        + "inside this facet.  Nothing will happen.");
      }
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutFacet

        + "' attribute not found on '" + FACET_ELEMENT
        + "' Element!");
  }

  // Create new LayoutFacet
  LayoutFacet facetElt =  new LayoutFacet(parent, id);

  // Set isRendered
  String rendered = (String) getAttributes(node).get(RENDERED_ATTRIBUTE);
  boolean isRendered = true;
  if ((rendered == null) || rendered.trim().equals("")
    || rendered.equals(AUTO_RENDERED)) {
      // Automatically determine if this LayoutFacet should be rendered
      isRendered = !LayoutElementUtil.isNestedLayoutComponent(facetElt);
  } else {
      isRendered = Boolean.getBoolean(rendered);
  }
  facetElt.setRendered(isRendered);

  // Add children...
  addChildLayoutElements(facetElt, node);

  // Return the LayoutFacet
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.