{"id":25255821,"url":"https://github.com/dashorst/wicket-stuff-markup-validator","last_synced_at":"2025-10-27T01:31:33.537Z","repository":{"id":44738780,"uuid":"131122","full_name":"dashorst/wicket-stuff-markup-validator","owner":"dashorst","description":"Wicket response filter that validates XHTML markup","archived":false,"fork":false,"pushed_at":"2022-07-07T23:09:15.000Z","size":2910,"stargazers_count":20,"open_issues_count":7,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T19:33:23.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dashorst.github.com/wicket-stuff-markup-validator","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashorst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-02-17T21:38:21.000Z","updated_at":"2024-04-16T19:33:23.387Z","dependencies_parsed_at":"2022-09-11T04:52:46.358Z","dependency_job_id":null,"html_url":"https://github.com/dashorst/wicket-stuff-markup-validator","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashorst%2Fwicket-stuff-markup-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashorst%2Fwicket-stuff-markup-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashorst%2Fwicket-stuff-markup-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashorst%2Fwicket-stuff-markup-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashorst","download_url":"https://codeload.github.com/dashorst/wicket-stuff-markup-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238422554,"owners_count":19469548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-12T05:59:48.715Z","updated_at":"2025-10-27T01:31:31.150Z","avatar_url":"https://github.com/dashorst.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wicket Stuff HTML5 Validator\n============================\n\nThis project validates the output of your [Apache Wicket](http://wicket.apache.org)\napplication while running. It includes a error view showing each validation error,\nwith line-precise error messages.\n\n\u003cimg src=\"https://raw.github.com/dashorst/wicket-stuff-markup-validator/gh-pages/images/screen1.png\" alt=\"Screenshot\" title=\"Screenshot of a validation error\" maxwidth=\"854px\" /\u003e\n\nValidates the following w3c standards:\n\n * HTML 4.01 Strict\n * HTML 4.01 Transitional\n * XHTML 1.0 Strict\n * XHTML 1.0 Transitional\n * HTML 5\n\nThis project includes the HTML validator taken from [html\nvalidator](http://validator.nu).\n\nUsage\n-----\n\nMake sure you use Wicket 6.0.0 or newer. This validator does not run on earlier versions, but is compatible with newer versions. Java 6 is also a minimum requirement.\n\nAdd the Wicket Stuff validator to your POM as a dependency:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.wicketstuff.htmlvalidator\u003c/groupId\u003e\n    \u003cartifactId\u003ewicketstuff-htmlvalidator\u003c/artifactId\u003e\n    \u003cversion\u003e1.10\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nDepending on your setup you need to use a different `scope` (for example test\nor provided to prevent the validator to be deployed to production).\n\nAdd the following lines to your `Application`'s init method:\n\n```java\n@Override\nprotected void init() {\n    super.init();\n    getMarkupSettings().setStripWicketTags(true);\n    getRequestCycleSettings().addResponseFilter(new HtmlValidationResponseFilter());\n}\n```\n\nYou might want to put a check for the configuration of your application \naround the addition of the response filter, to ensure that the filter doesn't run\nin production mode:\n\n```java\nif (RuntimeConfigurationType.DEVELOPMENT == getConfigurationType()) {\n    getRequestCycleSettings().addResponseFilter(new HtmlValidationResponseFilter());\n}\n```\n\nLicense\n-------\n\nThis project is distributed using the Apache 2 License (see LICENSE for more details\non other included software).\n\nBuild\n-----\n\nBuilding Wicket.Validator is not difficult: you need to have Java 6 and Maven 3 installed, \nand know how to checkout sources from github. Assuming you know how to use Git, you need \nto do the following on a command prompt:\n\n```bash\n$ git clone git://github.com/dashorst/wicket-stuff-markup-validator.git\n$ cd wicket-stuff-markup-validator\n$ mvn install\n```\n\nThen you can add the Wicket.Validator dependency to your own application using Maven.\n\nOriginal sources\n----------------\n\nMost of the sources come from the htmlvalidator service, which has\nits source code published on bitbucket.\n\nFollow the build instructions found here: https://bitbucket.org/validator/build/src\nto get all the necessary sources (patched and downloaded) onto your system.\nJust make sure that the `checker` folder is next to the clone of the wicket validator folder.\n\n\nThe `whattf` module is derived from the syntax module:\n\n* java code is taken from: https://bitbucket.org/validator/syntax/src/c7989b0788cb/non-schema\n* src/main/resources is taken from: https://bitbucket.org/validator/syntax/src/c7989b0788cb73ad916980e122a470d730a51820/relaxng\n\nRetrieve the sources:\n\n    hg clone https://bitbucket.org/validator/syntax\n\nRemove the current sources and copy the newly checked out one's:\n\n    rm -rf wicketstuff-htmlvalidator-parent/whattf/src/main/java\n    cp -r checker/syntax/non-schema/java/src wicketstuff-htmlvalidator-parent/whattf/src/main/java\n    cp -r checker/syntax/relaxng/datatype/java/src/org wicketstuff-htmlvalidator-parent/whattf/src/main/java\n    cp -r checker/validator/src/nu/validator/localentities wicketstuff-htmlvalidator-parent/whattf/src/main/resources/nu/validator\n    \n    rm -rf wicketstuff-htmlvalidator-parent/whattf/src/main/resources/relaxng/*\n    cp checker/syntax/relaxng/* wicketstuff-htmlvalidator-parent/whattf/src/main/resources/relaxng\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashorst%2Fwicket-stuff-markup-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashorst%2Fwicket-stuff-markup-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashorst%2Fwicket-stuff-markup-validator/lists"}