Package org.apache.wicket.protocol.http.documentvalidation

Examples of org.apache.wicket.protocol.http.documentvalidation.TextContent


  private boolean validatePage2(String document)
  {
    HtmlDocumentValidator validator = new HtmlDocumentValidator();
    Tag html = new Tag("html");
    Tag body = new Tag("body");
    body.addExpectedChild(new TextContent("\\s+"));
    html.addExpectedChild(body);
    Tag span = new Tag("span");
    body.addExpectedChild(span);

    span.addExpectedChild(new TextContent("\\s*Panel Content"));

    validator.addRootElement(html);
    return validator.isDocumentValid(document);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.documentvalidation.TextContent

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.