Package com.sun.jsftemplating.layout.template

Examples of com.sun.jsftemplating.layout.template.EventParserCommand


    throw new SyntaxException(
        "The 'type' attribute is required on 'ui:event'!");
      }
      String eventName = type.getNodeValue();
      InputStream is = new ByteArrayInputStream(body.getBytes());
      EventParserCommand command = new EventParserCommand();
      try {
    TemplateParser parser = new TemplateParser(is);
    parser.open()// Needed to initialize things.
    // Setup the reader...
    TemplateReader reader = new TemplateReader("foo", parser); // TODO: get a real ID
    reader.pushTag("event"); // The tag will be popped at the end
    // Read the handlers...
    command.process(new BaseProcessingContext(),
      new ProcessingContextEnvironment(reader, parent, true), eventName);
    // Clean up
    parser.close();
      } catch (IOException e) {
    // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of com.sun.jsftemplating.layout.template.EventParserCommand

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.