{"id":15952605,"url":"https://github.com/try0/wicket-izitoast","last_synced_at":"2026-01-03T18:31:42.573Z","repository":{"id":42571914,"uuid":"180348122","full_name":"try0/wicket-iziToast","owner":"try0","description":"Apache Wicket utilities for using iziToast. Display feedback message as toast.","archived":false,"fork":false,"pushed_at":"2024-07-18T15:20:23.000Z","size":295,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"wicket-10.x","last_synced_at":"2025-03-10T19:40:49.355Z","etag":null,"topics":["feedback-message","izitoast","java","toast","web","wicket"],"latest_commit_sha":null,"homepage":"https://try0.jp/app/wicket-izitoast-samples/","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":"CHANGELOG.md","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":"2019-04-09T11:03:17.000Z","updated_at":"2025-01-16T10:37:20.000Z","dependencies_parsed_at":"2024-04-06T13:31:53.352Z","dependency_job_id":"377ad0f3-f46c-4bb1-8108-e246b6c4648c","html_url":"https://github.com/try0/wicket-iziToast","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-iziToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-iziToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-iziToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/try0%2Fwicket-iziToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/try0","download_url":"https://codeload.github.com/try0/wicket-iziToast/tar.gz/refs/heads/wicket-10.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244313902,"owners_count":20433011,"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":["feedback-message","izitoast","java","toast","web","wicket"],"created_at":"2024-10-07T13:09:17.152Z","updated_at":"2026-01-03T18:31:42.543Z","avatar_url":"https://github.com/try0.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wicket-iziToast\n[Apache Wicket](https://wicket.apache.org/) utilities for using [iziToast](http://izitoast.marcelodolza.com/).\nwicket-iziToast converts the feedback message to JavaScript to display the toast.\n\n\n\n[![Build Status](https://github.com/try0/wicket-iziToast/workflows/Java%20CI/badge.svg)](https://github.com/try0/wicket-iziToast/actions?query=workflow%3A%22Java+CI%22)\n[![Maven Central](https://img.shields.io/maven-central/v/jp.try0.wicket/wicket-izitoast-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22jp.try0.wicket%22%20AND%20a:%22wicket-izitoast-core%22)\n\n\n\n# Version\n\n\n| Version | Wicket | iziToast |\n| ---- | ---- | ---- |\n| [3.0.0](https://search.maven.org/artifact/jp.try0.wicket/wicket-izitoast-core/3.0.0/jar) | 10.x | 1.4.0 |\n| [2.1.0](https://search.maven.org/artifact/jp.try0.wicket/wicket-izitoast-core/2.1.0/jar) | 9.x | 1.4.0 |\n| [1.1.0](https://search.maven.org/artifact/jp.try0.wicket/wicket-izitoast-core/1.1.0/jar)  | 8.x | 1.4.0 |\n\n\n\n# Demo\nDeployed [wicket-izitoast-samples](https://try0.jp/app/wicket-izitoast-samples/) module.\n\n\n\n# Usage\n\n[Examples](https://github.com/try0/wicket-iziToast/wiki)\n\nAdd wicket-izitoast-core dependency.  \nWicket 10.x\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ejp.try0.wicket\u003c/groupId\u003e\n    \u003cartifactId\u003ewicket-izitoast-core\u003c/artifactId\u003e\n    \u003cversion\u003e3.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nWicket 9.x\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ejp.try0.wicket\u003c/groupId\u003e\n    \u003cartifactId\u003ewicket-izitoast-core\u003c/artifactId\u003e\n    \u003cversion\u003e2.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nWicket 8.x\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ejp.try0.wicket\u003c/groupId\u003e\n    \u003cartifactId\u003ewicket-izitoast-core\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Initialize Settings\nYou can set default values, in the application initialize process(Application#init).\n```java\nIziToastSetting\n.createInitializer(this)\n.setAutoAppendBehavior(true)\n.setGlobalOption(option) // default iziToast option. apply in client-side (execute iziToast.settings(option))\n.setGlobalEachLevelOptions(perLevelOptions) // default option per levels. apply in server-side.\n.setToastMessageCombiner(combiner) // combiner that combine same level feedback messages.\n.initialize();\n```\n#### Properties\n##### AutoAppendBehavior\nif true add IziToastBehavior to page automatically.\n\n##### GlobalOption\nDefault toast option. Execute iziToast.settings(option) on the client-side and apply the default option.\n\n##### GlobalEachLevelOptions\nDefault toast option per levels.\n\n```java\nToastOption defaultInfoOption = new ToastOption();\n// TODO set option values\n\nEachLevelToastOptions options = EachLevelToastOptions.builder()\n        .setInfoOption(defaultInfoOption)\n        .get();\n\n// TODO setGlobalEachLevelOptions(options)\n```\n\n\nOption priority level\nDefault option per levels (GlobalEachLevelOptions) \u003e Default option (GlobalOption)\n\n##### ToastMessageCombiner\nCombiner that combines messages for each toast level.\n\n```java\nToastMessageCombiner combiner = new ToastMessageCombiner();\ncombiner.setPrefix(\"・\");\n\n// TODO setToastMessageCombiner(combiner)\n```\n\nIf execute this Java code.\n```java\nerror(\"message1\");\nerror(\"message2\");\n```\n\nMessages are combined and displayed in one toast.\n\n![errors](https://user-images.githubusercontent.com/17096601/71779629-dd56bc80-2ffa-11ea-9f45-b75b1f86d5da.PNG)\n\n\n### Display toast\n\nadd IziToastBehavior to page.\n(If you set setAutoAppendBehavior to true when initializing settings, no need this code.)\n```java\nadd(new IziToastBehavior());\n```\n\nIziToastBehavior converts feedback messages to JavaScript for displaying toast.\n\n\nSuccess toast\n* org.apache.wicket.Component#success(Serializable)\n* org.apache.wicket.Session#success(Serializable)\n\n![success](https://user-images.githubusercontent.com/17096601/71773891-9d66e980-2fa8-11ea-8a3f-83e804549c58.PNG)\n\n\nInformation toast\n* org.apache.wicket.Component#info(Serializable)\n* org.apache.wicket.Session#info(Serializable)\n\n![info](https://user-images.githubusercontent.com/17096601/71773896-aa83d880-2fa8-11ea-9149-e0c99aec01b9.PNG)\n\n\nWarning toast\n* org.apache.wicket.Component#warn(Serializable)\n* org.apache.wicket.Session#warn(Serializable)\n\n![warn](https://user-images.githubusercontent.com/17096601/71773898-b40d4080-2fa8-11ea-81aa-0776713cdb2e.PNG)\n\n\nError toast\n* org.apache.wicket.Component#error(Serializable)\n* org.apache.wicket.Session#error(Serializable)\n* org.apache.wicket.Component#fatal(Serializable)\n* org.apache.wicket.Session#fatal(Serializable)\n\n![error](https://user-images.githubusercontent.com/17096601/71773873-50831300-2fa8-11ea-9df5-0474e7a1b7c1.PNG)\n\n\n\n### Display toast manually\nIn this case, need instance of class that implemented IHeaderResponse or AjaxRequestTarget.\n\n```java\nToast.create(toastLevel, message)\n.show(target);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fwicket-izitoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftry0%2Fwicket-izitoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftry0%2Fwicket-izitoast/lists"}