Package com.sun.jsftemplating.layout.descriptors

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


    }
      }
  } else if ("ui:if".equals(nodeName)) {
      // Handle "if" conditions
      String condition = attrs.getNamedItem("condition").getNodeValue();
      element = new LayoutIf(parent, condition);
  } else if ("ui:foreach".equals(nodeName)) {
      // Handle "foreach" conditions
      Node valueNode = attrs.getNamedItem("value");
      if (valueNode == null) {
    throw new SyntaxException("The 'value' property is required on 'foreach'.");
View Full Code Here


      throw new RuntimeException("'" + CONDITION_ATTRIBUTE
        + "' attribute not found on '" + IF_ELEMENT + "' Element!");
  }

  // Create new LayoutIf
  LayoutElement ifElt =  new LayoutIf(parent, condition);

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

  // Return the if
View Full Code Here

      String condition = parser.readUntil('>', false).trim();

      // Create new LayoutIf
      LayoutElement parent = env.getParent();
// FIXME: the 'if' below checks to see if 'condition' ends with '/', yet I don't see this code removing the '/'... isn't that a problem?  Test and fix!
      LayoutElement ifElt =  new LayoutIf(parent, condition);
      parent.addChildLayoutElement(ifElt);

      if (condition.endsWith("/")) {
    reader.popTag()// Don't look for end tag
      } else {
View Full Code Here

TOP

Related Classes of com.sun.jsftemplating.layout.descriptors.LayoutIf

Copyright © 2018 www.massapicom. 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.