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

Examples of org.apache.wicket.protocol.http.documentvalidation.HtmlDocumentValidator.addRootElement()


    ulNav.addExpectedChild(new Tag("li").addExpectedChild(new Tag("a").addExpectedChild(new Tag(
        "span").addExpectedChild(new TextContent("2")))));

    body.addExpectedChild(ulNav);

    validator.addRootElement(html);

    return validator.isDocumentValid(document);
  }
}
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.