{"id":15952576,"url":"https://github.com/try0/wicket-resource-bundle","last_synced_at":"2025-06-16T14:06:28.156Z","repository":{"id":144153886,"uuid":"483631252","full_name":"try0/wicket-resource-bundle","owner":"try0","description":"Looks up resources located in annotated component packages and registers them in ResourceBundles.","archived":false,"fork":false,"pushed_at":"2022-04-26T10:18:52.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T16:15:38.822Z","etag":null,"topics":["bundle","css","java","javascript","resource","wicket"],"latest_commit_sha":null,"homepage":"","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/try0.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-20T11:44:18.000Z","updated_at":"2024-12-29T22:28:36.000Z","dependencies_parsed_at":"2024-03-22T14:30:41.347Z","dependency_job_id":null,"html_url":"https://github.com/try0/wicket-resource-bundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-resource-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-resource-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-resource-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-resource-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/try0","download_url":"https://codeload.github.com/try0/wicket-resource-bundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123099,"owners_count":20887259,"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":["bundle","css","java","javascript","resource","wicket"],"created_at":"2024-10-07T13:09:11.777Z","updated_at":"2025-04-04T04:45:08.851Z","avatar_url":"https://github.com/try0.png","language":"Java","readme":"# wicket-resource-bundle\n\nExtends resource bundling of wicket.   \nLooks up resources located in annotated component packages and bundles them into a single resource.  \nwicket-resource-bundle depends on [wicket-core](https://github.com/apache/wicket/tree/master/wicket-core) and [wicketstuff-annotation](https://github.com/wicketstuff/core/tree/master/annotation).  \n\nWicketApplication.css ( = HomePage.css + MyPanel.css )  \nWicketApplication.js ( = JQuery + MyPanel.js )  \n\n![image](https://user-images.githubusercontent.com/17096601/164439559-289b9a0a-40ef-447b-9d67-ff7639ad49c8.png)\n\n```java\npublic class WicketApplication extends WebApplication {\n\n\t@Override\n\tpublic Class\u003c? extends WebPage\u003e getHomePage() {\n\t\treturn HomePage.class;\n\t}\n\n\t@Override\n\tpublic void init() {\n\t\tsuper.init();\n    \n\t\t// jp.try0.wicket.resource.bundle.BundleResourceManager\n\t\tBundleResourceManager manager = new BundleResourceManager(this);\n\t\t// Can be added\n\t\tmanager.addJavaScriptResourceReference(JQueryResourceReference.getV3());\n\t\tmanager.register();\n\n\t}\n}\n\n```\n\n```java\n@BundleResource(name = \"HomePage.css\")\npublic class HomePage extends WebPage {\n\n\tpublic HomePage(final PageParameters parameters) {\n\t\tsuper(parameters);\n\t\tadd(new Label(\"version\", getApplication().getFrameworkSettings().getVersion()));\n\t\tadd(new MyPanel(\"myPanel\"));\n\t}\n\t\n\t@Override\n\tpublic void renderHead(IHeaderResponse response) {\n\t\tsuper.renderHead(response);\n\t\tresponse.render(CssHeaderItem.forReference(new CssResourceReference(getClass(), \"HomePage.css\")));\n\t}\n}\n```\n\n```java\n@BundleResources({\n\t@BundleResource(name = \"MyPanel.css\"),\n\t@BundleResource(name = \"MyPanel.js\") })\npublic class MyPanel extends Panel {\n\n\tpublic MyPanel(String id) {\n\t\tsuper(id);\n\n\t\tadd(new Label(\"pnlLabel\", \"MyPanel\"));\n\t}\n\t\n\t@Override\n\tpublic void renderHead(IHeaderResponse response) {\n\t\tsuper.renderHead(response);\n\t\tresponse.render(CssHeaderItem.forReference(new CssResourceReference(getClass(), \"MyPanel.css\")));\n\t\tresponse.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(getClass(), \"MyPanel.js\")));\n\t}\n}\n```\n\n## Define dependencies.\n\n\n```java\n@BundleResources({\n\t@BundleResource(name = \"ModalDialog.css\"),\n\t@BundleResource(name = \"ModalDialog.js\") })\npublic class ModalDialog extends Panel {\n```\n\n```java\n@BundleResource(name = \"ConfirmButton.js\", dependencies = { ModalDialog.class })\npublic class ConfirmButton extends Button {\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fwicket-resource-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftry0%2Fwicket-resource-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fwicket-resource-bundle/lists"}