Examples of LayoutComposition


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

  return abortProcessing;
    }
   
    private LayoutComposition processComposition(LayoutElement parent, String attrName, NamedNodeMap attrs, String id, boolean trimming) {
    LayoutComposition lc = new LayoutComposition(parent, id);
    lc.setTrimming(trimming);
    if (trimming) {
      parent = parent.getLayoutDefinition(); // parent to the LayoutDefinition
      parent.getChildLayoutElements().clear(); // a ui:composition clears everything outside of it
 
  Node fileNameNode = attrs.getNamedItem(attrName);
  String fileName = (fileNameNode != null) ? fileNameNode.getNodeValue() : null;
  lc.setTemplate(fileName);

  return lc;
    }
View Full Code Here

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

      parent.getChildLayoutElements().clear(); // a ui:composition clears everything outside of it
 
  LayoutComponent lc = new LayoutComponent(parent, id,
    LayoutDefinitionManager.getGlobalComponentType(null, "event"));
  parent.addChildLayoutElement(lc);
  LayoutComposition comp = processComposition(lc, "template", attrs, id+"_lc", trimming)

  NodeList nodeList = node.getChildNodes();
  boolean abortChildProcessing = false;
  for (int i = 0; i < nodeList.getLength() && (abortChildProcessing != true); i++) {
      try {
View Full Code Here

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

        buildUIComponentTree(context, parent, childElt);
    }
    // NOTE: LayoutFacets that aren't JSF facets aren't
    // NOTE: meaningful in this context
      } else if (childElt instanceof LayoutComposition) {
    LayoutComposition compo = ((LayoutComposition) childElt);
    String template = compo.getTemplate();
    if (template != null) {
        // Add LayoutComposition to the stack
        LayoutComposition.push(context, childElt);

        try {
View Full Code Here

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

  // Next get the attributes
  List<NameValuePair> nvps =
      reader.readNameValuePairs(name, templateAttName, true);

  // Create new LayoutComposition
  LayoutComposition compElt = new LayoutComposition(
      parent,
      LayoutElementUtil.getGeneratedId(name, reader.getNextIdNumber()),
      trimming);

  // Look for required attribute
  // Find the template name
  for (NameValuePair nvp : nvps) {
      if (nvp.getName().equals(templateAttName)) {
    compElt.setTemplate((String) nvp.getValue());
      } else if (nvp.getName().equals(REQUIRED_ATTRIBUTE)) {
    compElt.setRequired(nvp.getValue().toString());
      } else {
                // We are going to treat extra attributes on compositions to be
                // ui:param values
                compElt.setParameter(nvp.getName(), nvp.getValue());
      }
  }

  parent.addChildLayoutElement(compElt);
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.