{"id":37016405,"url":"https://github.com/mpobjects/wicket4-webjars","last_synced_at":"2026-01-14T01:51:13.223Z","repository":{"id":57726768,"uuid":"98193080","full_name":"mpobjects/wicket4-webjars","owner":"mpobjects","description":"webjars integration for Apache Wicket 1.4.x","archived":true,"fork":true,"pushed_at":"2019-11-11T07:02:27.000Z","size":341,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"wicket-4.x","last_synced_at":"2025-08-17T04:27:49.683Z","etag":null,"topics":["apache-wicket","java","webjars","wicket"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"martin-g/wicket-webjars","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpobjects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-24T13:21:52.000Z","updated_at":"2024-11-28T18:27:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mpobjects/wicket4-webjars","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/mpobjects/wicket4-webjars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpobjects%2Fwicket4-webjars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpobjects%2Fwicket4-webjars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpobjects%2Fwicket4-webjars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpobjects%2Fwicket4-webjars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpobjects","download_url":"https://codeload.github.com/mpobjects/wicket4-webjars/tar.gz/refs/heads/wicket-4.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpobjects%2Fwicket4-webjars/sbom","scorecard":{"id":663022,"data":{"date":"2025-08-11","repo":{"name":"github.com/mpobjects/wicket4-webjars","commit":"1e8732b15eba642abc7547a00bd9e6731dc99076"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'wicket-4.x'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T16:49:38.597Z","repository_id":57726768,"created_at":"2025-08-21T16:49:38.597Z","updated_at":"2025-08-21T16:49:38.597Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apache-wicket","java","webjars","wicket"],"created_at":"2026-01-14T01:51:12.632Z","updated_at":"2026-01-14T01:51:13.218Z","avatar_url":"https://github.com/mpobjects.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wicket4-webjars\n\nIntegration of webjars for Apache Wicket 1.4. This is a backport of wicket-webjars 2.0.4 to Wicket 1.4.x.\n\nCurrent build status: [![Build Status](https://travis-ci.org/mpobjects/wicket4-webjars.svg)](https://travis-ci.org/mpobjects/wicket4-webjars)\n\nwicket-webjars dependes on [webjars](https://github.com/webjars/webjars).\n\n\n**Note:** This version is only for wicket 1.4.x. This library is mostly forwards compatible. Once you upgrade to Wicket 6 or later you should be able to replace this library with the standard [wicket-webjars](https://github.com/l0rdn1kk0n/wicket-webjars).\n\nDocumentation:\n\n- [Webjars Documentation](http://www.webjars.org/documentation)\n- [Available Webjars](http://www.webjars.org)\n\n## Latest Release\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.mpobjects.wicket/wicket4-webjars.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.mpobjects.wicket%22%20AND%20a:%22wicket4-webjars%22)\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.mpobjects.wicket\u003c/groupId\u003e\n  \u003cartifactId\u003ewicket4-webjars\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Installation\n\n```java\n  /**\n   * @see org.apache.wicket.Application#init()\n   */\n  @Override\n  public void init() {\n    super.init();\n\n    // install 3 default collector instances\n    // (FileAssetPathCollector(WEBJARS_PATH_PREFIX), JarAssetPathCollector, VfsAssetPathCollector)\n    // and a webjars resource finder.\n    WebjarsSettings settings = new WebjarsSettings();\n\n    WicketWebjars.install(this, settings);\n  }\n```\n\n## Usage\n\nAdd a webjars resource reference (css,js) to your IHeaderResponse:\n\n```java\npublic WebjarsComponent extends Panel {\n\n  public WebjarsComponent(String id) {\n    super(id);\n  }\n\n  @Override\n  public void renderHead(IHeaderResponse response) {\n    super.renderHead(response);\n\n    response.getHeaderResponse().renderJavascriptReference(new WebjarsJavaScriptResourceReference(\"jquery/1.12.4/jquery.min.js\"));\n    response.getHeaderResponse().renderCSSReference(new WebjarsCssResourceReference(\"bootstrap/3.3.7/css/bootstrap.css\"));\n  }\n}\n```\n\nOr via header contributors:\n\n```java\npublic WebjarsComponent extends Panel {\n\n  public WebjarsComponent(String id) {\n    super(id);\n  }\n\n  @Override\n  protected void onInitialize() {\n    add(JavascriptPackageResource.getHeaderContribution(new WebjarsJavaScriptResourceReference(\"jquery/1.12.4/jquery.min.js\")));\n    add(CSSPackageResource.getHeaderContribution(new WebjarsCssResourceReference(\"bootstrap/3.3.7/css/bootstrap.css\")));\n  }\n}\n```\n\nAdd dependencies to your pom.xml:\n\n```xml\n\u003cdependencies\u003e\n  \u003cdependency\u003e\n      \u003cgroupId\u003ecom.mpobjects.wicket\u003c/groupId\u003e\n      \u003cartifactId\u003ewicket4-webjars\u003c/artifactId\u003e\n  \u003c/dependency\u003e\n\n  \u003cdependency\u003e\n      \u003cgroupId\u003eorg.webjars\u003c/groupId\u003e\n      \u003cartifactId\u003ejquery\u003c/artifactId\u003e\n      \u003cversion\u003e1.8.3\u003c/version\u003e\n  \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nTo use always recent version from your pom you have to replace the version in path with the string \"current\". When resource\nname gets resolved this string will be replaced by recent available version in classpath. (this feature is available since 0.2.0)\n\n```java\npublic WebjarsComponent extends Panel {\n\n  public WebjarsComponent(String id) {\n    super(id);\n  }\n\n  @Override\n  public void renderHead(IHeaderResponse response) {\n    super.renderHead(response);\n\n    response.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference(\"jquery/current/jquery.js\")));\n  }\n}\n```\n\n### SecurePackageResourceGuard\n\nWicket contains a filter that prevents arbitrarypackage resources from being served. This filter will however break certain webjars packages. For example, webfonts are not included in this filter in wicket 1.4 so you need to add them manually.\n\nIn the initialization of your WebApplication simply add the patterns you want to accept\n\n```java\n  IPackageResourceGuard packageGuard = getResourceSettings().getPackageResourceGuard();\n  if (packageGuard instanceof SecurePackageResourceGuard) {\n    SecurePackageResourceGuard secGuard = (SecurePackageResourceGuard) packageGuard;\n    secGuard.addPattern(\"+*.cur\");\n    secGuard.addPattern(\"+*.map\");\n\n    secGuard.addPattern(\"+*.svg\");\n\n    secGuard.addPattern(\"+*.eot\");\n    secGuard.addPattern(\"+*.ttf\");\n    secGuard.addPattern(\"+*.woff\");\n    secGuard.addPattern(\"+*.woff2\");\n  }\n```\n\n### Static Linked Resources\n\nIn the original wicket-webjars, when running in a Servlet 3+ container you are able to specify URLs like\n\n```html\n\u003cimg src=\"webjars/jquery-ui/1.9.2/css/smoothness/images/ui-icons_cd0a0a_256x240.png\"/\u003e\n```\n\nThis does not work by default in wicket4-webjars, as you are probably not running it in a Servlet 3+ container. In order to make this work you can simply mount an additional ```IRequestTargetUrlCodingStrategy``` in your wicket application as follows:\n\n```java\n  mount(new WebjarsRequestTargetUrlCodingStrategy());\n```\n\nAn alternative method is by using the [Servlet 2 setup provided by WebJars](https://www.webjars.org/documentation#servlet2).\n\n*Note:* this functionality is not forwards compatible, as it does not exist in the upstream library.\n\n## Limitations\n\nThe following functionality from wicket-webjars 2.x is not supported in this backport:\n\n- CDN\n\n# Authors\n\n   * Michael Haitz\n   * Martin Grigorov\n   * Michiel Hendriks (wicket 1.4.x backport)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpobjects%2Fwicket4-webjars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpobjects%2Fwicket4-webjars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpobjects%2Fwicket4-webjars/lists"}