Hi,
we're trying to use the Wicketstuff Html Validator (see
https://github.com/dashorst/wicket-stuff-markup-validator.) with our Wicket7
project. We've built our application with the lates release of Wicket 7
(7.4.0) and with the latest release of wicketstuff-htmlvalidator (1.11).
By the way, our generated Html markup is not valid, but we get all the time
if we're using the validator the following IllegalStateException. Any idea
how to solve the problem?

ERROR [ValidationReport] Line 6 contains error at 81: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 7 contains error at 73: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 8 contains error at 50: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 9 contains error at 45: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 10 contains error at 51: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 11 contains error at 91: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 12 contains error at 46: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 13 contains error at 68: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line 14 contains error at 74: value of attribute
"http-equiv" is invalid; must be equal to "content-type", "default-style" or
"refresh"
ERROR [ValidationReport] Line -1 contains error at -1: report:
  Using the ômetaö element to specify the document-wide default language is
obsolete. Consider specifying the language on the root element instead.
ERROR [HtmlValidationResponseFilter] java.lang.IllegalStateException:
Calling Context.exit without previous Context.enter
java.lang.IllegalStateException: Calling Context.exit without previous
Context.enter
        at org.mozilla.javascript.Context.exit(Unknown Source)
        at org.mozilla.javascript.Context.exit(Unknown Source)
        at org.whattf.datatype.FunctionBody.checkValid(FunctionBody.java:59)
        at
org.whattf.datatype.AbstractDatatype.checkValid(AbstractDatatype.java:75)
        at
com.thaiopensource.relaxng.pattern.DataDataDerivType.dataDeriv(DataDataDerivType.java:25)
        at
com.thaiopensource.relaxng.pattern.PatternMemo.dataDeriv(PatternMemo.java:191)
        at
com.thaiopensource.relaxng.pattern.PatternMatcher.matchAttributeValue(PatternMatcher.java:161)
        at
com.thaiopensource.relaxng.sax.PatternValidator.startElement(PatternValidator.java:38)
        at
com.thaiopensource.xml.sax.ForkContentHandler.startElement(ForkContentHandler.java:43)
        at
org.wicketstuff.htmlvalidator.xml.dataattributes.DataAttributeDroppingContentHandlerWrapper.startElement(DataAttributeDroppingContentHandlerWrapper.java:158)
        at
org.wicketstuff.htmlvalidator.xml.langattributes.XmlLangAttributeDroppingContentHandlerWrapper.startElement(XmlLangAttributeDroppingContentHandlerWrapper.java:149)
        at
nu.validator.htmlparser.sax.SAXStreamer.elementPushed(SAXStreamer.java:141)
        at
nu.validator.htmlparser.sax.SAXStreamer.elementPushed(SAXStreamer.java:35)
        at
nu.validator.htmlparser.impl.TreeBuilder.push(TreeBuilder.java:3976)
        at
nu.validator.htmlparser.impl.TreeBuilder.appendToCurrentNodeAndPushFormattingElementMayFoster(TreeBuilder.java:4558)
        at
nu.validator.htmlparser.impl.TreeBuilder.startTag(TreeBuilder.java:1849)
        at
nu.validator.htmlparser.impl.Tokenizer.emitCurrentTagToken(Tokenizer.java:1311)
        at
nu.validator.htmlparser.impl.Tokenizer.stateLoop(Tokenizer.java:2152)
        at
nu.validator.htmlparser.impl.Tokenizer.tokenizeBuffer(Tokenizer.java:1522)
        at nu.validator.htmlparser.io.Driver.runStates(Driver.java:317)
        at nu.validator.htmlparser.io.Driver.tokenize(Driver.java:217)
        at
nu.validator.htmlparser.sax.HtmlParser.tokenize(HtmlParser.java:459)
        at nu.validator.htmlparser.sax.HtmlParser.parse(HtmlParser.java:402)
        at
org.wicketstuff.htmlvalidator.HtmlValidationResponseFilter.validateMarkup(HtmlValidationResponseFilter.java:226)
        at
org.wicketstuff.htmlvalidator.HtmlValidationResponseFilter.filter(HtmlValidationResponseFilter.java:195)
        at
org.apache.wicket.protocol.http.BufferedWebResponse$WriteCharSequenceAction.invoke(BufferedWebResponse.java:168)
        at
org.apache.wicket.protocol.http.BufferedWebResponse.writeTo(BufferedWebResponse.java:602)
        at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:198)
        at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
        at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
        at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
        at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
        at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
        at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
        at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
        at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
        at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-htmlvalidator-problem-tp4675331.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to