I've seen some unanswered posts on this before, but I figured I'd try again. :)
I haven't had much luck in getting my Wicket pages to pass the test on validator.w3.org. (The "live action" examples on wicketstuff.org don't work, either, but that's because they don't specify a DOCTYPE.) I'm using the following DOCTYPE. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Using the one specified at http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-HtmlTemplateDeclaration doesn't seem to help. (Note that validation does work much better (but still fails) if my web.xml says I'm using a deployment configuration.) The following errors show how the failed validation plays out. 1) Warning Line 17 column 170: cannot generate system identifier for general entity "wicket:behaviorId". ...tLoc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotAc An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters. If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem. Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. 2) Error Line 17 column 170: general entity "wicket:behaviorId" not defined and no default entity. ...tLoc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotAc This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. 3) Error Line 17 column 187: reference to entity "wicket:behaviorId" for which no system identifier could be generated. ...nedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true', funct This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. 4) Info Line 17 column 169: entity was defined here. ...ntLoc:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotA Warning Line 17 column 190: cannot generate system identifier for general entity "wicket:ignoreIfNotActive". ...BehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true', function 5) Error Line 17 column 190: general entity "wicket:ignoreIfNotActive" not defined and no default entity. ...BehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true', function 6) Error Line 17 column 214: reference to entity "wicket:ignoreIfNotActive" for which no system identifier could be generated. ...behaviorId=0&wicket:ignoreIfNotActive=true', function() { }, function() { }); 7) Info Line 17 column 189: entity was defined here. ...dBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true', functio Error Line 45 column 207: reference to entity "wicket:behaviorId" for which no system identifier could be generated. ...::IBehaviorListener&wicket:behaviorId=0', function() { }, function() { });ret -- View this message in context: http://www.nabble.com/validator.w3.org-validation-tf4037660.html#a11471156 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user