{"id":37024226,"url":"https://github.com/roguexz/jsf-extensions","last_synced_at":"2026-01-14T02:55:33.888Z","repository":{"id":57736139,"uuid":"124347604","full_name":"roguexz/jsf-extensions","owner":"roguexz","description":"Portable extensions that make JSF nicer to use","archived":false,"fork":false,"pushed_at":"2018-03-13T05:04:21.000Z","size":556,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-21T19:32:54.871Z","etag":null,"topics":["javaee","jsf","resource-handler"],"latest_commit_sha":null,"homepage":null,"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/roguexz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-08T06:31:42.000Z","updated_at":"2023-09-08T17:37:38.000Z","dependencies_parsed_at":"2022-08-23T22:40:33.038Z","dependency_job_id":null,"html_url":"https://github.com/roguexz/jsf-extensions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/roguexz/jsf-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguexz%2Fjsf-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguexz%2Fjsf-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguexz%2Fjsf-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguexz%2Fjsf-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roguexz","download_url":"https://codeload.github.com/roguexz/jsf-extensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguexz%2Fjsf-extensions/sbom","scorecard":{"id":782871,"data":{"date":"2025-08-11","repo":{"name":"github.com/roguexz/jsf-extensions","commit":"d328dea468f0181a7d42d3ad62298860ce140b06"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 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":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"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":"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":"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"}},{"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 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"}}]},"last_synced_at":"2025-08-23T05:19:23.112Z","repository_id":57736139,"created_at":"2025-08-23T05:19:23.112Z","updated_at":"2025-08-23T05:19:23.112Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javaee","jsf","resource-handler"],"created_at":"2026-01-14T02:55:33.292Z","updated_at":"2026-01-14T02:55:33.875Z","avatar_url":"https://github.com/roguexz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/:license-Apache2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n\n* [JSF Resource Framework Extensions](#jsf-resource-framework-extensions)\n  * [About](#about)\n  * [Improved Resource Handling](#improved-resource-handling)\n    * [Dependencies](#dependencies)\n    * [Maven Coordinates](#maven-coordinates)\n    * [Build Status](#build-status)\n\n# JSF Resource Framework Extensions\n\nPortable extensions that make JSF nicer to use.\n\n## About\nSometime back I had [blogged](http://roguexz.blogspot.com/2013/10/jsf-2-returning-resource-url-that-is.html) about how\nyou can render a pretty URL for JSF resources which are local to the web-app. I have successfully used this technique\nacross various pet projects of mine, but the repetition was definitely annoying me. So I decided to put together a\nportable JSF extension that can be easily included in to any project.\n\nAdditionally, I also realized that when consuming an open-source CSS library, I find myself rewriting the relative URL\nreferences to fit the JSF resource handling format, i.e., something on the below lines,\n\n    url(\"#{resource['bootstrap:fonts/glyphicons-halflings-regular.eot']}\");\n\nThis task can make upgrades quite tedious, so I figured I should be able to leverage existing constructs to solve this\nproblem instead of defining new ones.\n\nConsider the following project layout,\n\n    ├── app\n    │   └── src\n    │       └── main\n    │           └── webapp\n    │               ├── index.xhtml\n    │               └── resources\n    │                   └── popper\n    │                       └── js\n    │                           ├── popper.js        ∖ Resources local\n    │                           └── popper.min.js    / to the web-app\n    ├── resource-library\n    │   └── src\n    │       └── main/resources/\n    │           └── META-INF/resources\n    │               ├── bootstrap\n    │               │   ├── css\n    │               │   │   ├── bootstrap.css\n    │               │   │   ├── bootstrap.min.css\n    │               │   ├── js\n    │               │   │   ├── bootstrap.js\n    │               │   │   ├── bootstrap.min.js\n    │               │   └── v_4.0.0\n    │               └── open-iconic\n    │                   ├── css\n    │                   │   ├── open-iconic-bootstrap.css      ∖__\n    │                   │   ├── open-iconic-bootstrap.min.css  /  |\n    │                   ├── fonts                                 |\n    │                   │   ├── open-iconic.eot   ∖               |\n    │                   │   ├── open-iconic.otf    |      Uses relative\n    │                   │   ├── open-iconic.svg    |\u003c---- URL references\n    │                   │   ├── open-iconic.ttf    |      to point to these\n    │                   │   └── open-iconic.woff  /       files\n    │                   └── v_1.1.0\n\n, and let's say your `index.xhtml` has the following resource declarations,\n\n    ...\n    \u003ch:outputStylesheet library=\"bootstrap\" name=\"css/bootstrap.min.css\"/\u003e\n    \u003ch:outputStylesheet library=\"open-iconic\" name=\"css/open-iconic-bootstrap.min.css\"/\u003e\n    ...\n    \u003cscript src=\"https://code.jquery.com/jquery-3.2.1.slim.min.js\" crossorigin=\"anonymous\"/\u003e\n    \u003ch:outputScript library=\"popper\" name=\"js/popper.min.js\" crossorigin=\"anonymous\"/\u003e\n    \u003ch:outputScript library=\"bootstrap\" name=\"js/bootstrap.min.js\" crossorigin=\"anonymous\"/\u003e\n    ...\n\n, the final rendered output might look like the below,\n\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"/javax.faces.resource/css/bootstrap.min.css.xhtml?ln=bootstrap\"/\u003e\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"/javax.faces.resource/css/open-iconic-bootstrap.min.css.xhtml?ln=open-iconic\"/\u003e\n    \u003cscript src=\"https://code.jquery.com/jquery-3.2.1.slim.min.js\" crossorigin=\"anonymous\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"/javax.faces.resource/js/popper.min.js.xhtml?ln=popper\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"/javax.faces.resource/js/bootstrap.min.js.xhtml?ln=bootstrap\"/\u003e\n\nThe problem with the above rendering is that the Open-Iconic file would request for the CSS files that translate to,\n\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"/javax.faces.resource/fonts/open-iconic.eot?\"/\u003e\n\nNow, the JSF resource servlet (which would handle the above request) will not know how to handle this request .. and it\nreturns a 404!\n\n## Improved Resource Handling\nAnd this is where my library will help you. Here is what it does,\n\n1. If a resource is local to your web-app, then do not bother rendering it via the JSF servlet.\n2. If a request comes in for a resource that does not have any library name associated (e.g., the 404 case noted above),\n   then look for the referrer URL and determine the library details from it and send a redirect to the correct resource\n   URL.\n\nOnce you include this project as a dependency, then you will notice that rendered URLs look like the following,\n\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"/javax.faces.resource/css/bootstrap.min.css.xhtml?ln=bootstrap\"/\u003e\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"/javax.faces.resource/css/open-iconic-bootstrap.min.css.xhtml?ln=open-iconic\"/\u003e\n    \u003cscript src=\"https://code.jquery.com/jquery-3.2.1.slim.min.js\" crossorigin=\"anonymous\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"/resources/popper/js/popper.min.js\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"/javax.faces.resource/js/bootstrap.min.js.xhtml?ln=bootstrap\"/\u003e\n\nAnd the [RelativeResourceHandlingFilter](src/main/java/io/rogue/faces/filter/RelativeResourceHandlingFilter.java) will\ntake care of sending the appropriate redirect to the browser.\n\n### Dependencies\n\n* Java 8\n* JavaEE 7 - specifically JSF2\n\n### Maven Coordinates\n\nThis module is published to OSS Central and can be access at the following coordinates:\n\n    io.rogue.ee:jsf-extensions:\u003cversion\u003e\n    \n    Check the following link for locating the latest version.\n    https://oss.sonatype.org/#nexus-search;gav~io.rogue.ee~jsf-extensions~~~\n    \n    The very initial functioning release is version 0.0.0\n\n### Build Status\n\n|Branch|Status|\n|------|------|\n|master| [![Build Status](https://travis-ci.org/roguexz/jsf-extensions.svg?branch=master)](https://travis-ci.org/roguexz/jsf-extensions) |\n|develop| [![Build Status](https://travis-ci.org/roguexz/jsf-extensions.svg?branch=develop)](https://travis-ci.org/roguexz/jsf-extensions) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguexz%2Fjsf-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froguexz%2Fjsf-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguexz%2Fjsf-extensions/lists"}