wicket-toastr-samples

wicket-toastr-parent

Лицензия

Лицензия

Категории

Категории

Wicket Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

jp.try0.wicket
Идентификатор

Идентификатор

wicket-toastr-samples
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

war
Описание

Описание

wicket-toastr-samples
wicket-toastr-parent

Скачать wicket-toastr-samples

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/jp.try0.wicket/wicket-toastr-samples/ -->
<dependency>
    <groupId>jp.try0.wicket</groupId>
    <artifactId>wicket-toastr-samples</artifactId>
    <version>2.0.0</version>
    <type>war</type>
</dependency>
// https://jarcasting.com/artifacts/jp.try0.wicket/wicket-toastr-samples/
implementation 'jp.try0.wicket:wicket-toastr-samples:2.0.0'
// https://jarcasting.com/artifacts/jp.try0.wicket/wicket-toastr-samples/
implementation ("jp.try0.wicket:wicket-toastr-samples:2.0.0")
'jp.try0.wicket:wicket-toastr-samples:war:2.0.0'
<dependency org="jp.try0.wicket" name="wicket-toastr-samples" rev="2.0.0">
  <artifact name="wicket-toastr-samples" type="war" />
</dependency>
@Grapes(
@Grab(group='jp.try0.wicket', module='wicket-toastr-samples', version='2.0.0')
)
libraryDependencies += "jp.try0.wicket" % "wicket-toastr-samples" % "2.0.0"
[jp.try0.wicket/wicket-toastr-samples "2.0.0"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
org.apache.wicket : wicket-core jar 9.2.0
org.apache.wicket : wicket-request jar 9.2.0
org.apache.wicket : wicket-util jar 9.2.0
jp.try0.wicket : wicket-toastr-core jar 2.0.0
de.agilecoders.wicket : wicket-bootstrap-core jar 5.0.0-M2
com.google.guava : guava jar 26.0-jre
org.slf4j : slf4j-simple jar 1.7.25

test (8)

Идентификатор библиотеки Тип Версия
org.eclipse.jetty : jetty-webapp jar 9.4.14.v20181114
org.eclipse.jetty : jetty-jmx jar 9.4.14.v20181114
javax.servlet : javax.servlet-api jar 3.0.1
org.junit.jupiter : junit-jupiter-engine jar 5.5.1
org.junit.jupiter : junit-jupiter-api jar 5.5.1
org.junit.jupiter : junit-jupiter-params jar 5.5.1
org.junit.jupiter : junit-jupiter-migrationsupport jar 5.5.1
org.junit.platform : junit-platform-launcher jar 1.5.1

Модули Проекта

Данный проект не имеет модулей.

wicket-toastr

Build Status codecov Quality Gate Status Maven Central Javadocs

Apache Wicket utilities for using toastr which is library of a simple javascript toast notification.
Just add behavior to component, you can display toast. This behavior use wicket feedback message system.
Also, you can display toast manually without use feedback message.

Version

toastr wicket
1.0.2 2.1.4 8.x
2.0.0 2.1.4 9.x

Demo

Deployed wicket-toastr-samples module.
demo

Usage

Maven

Wicket9

<dependency>
    <groupId>jp.try0.wicket</groupId>
    <artifactId>wicket-toastr-core</artifactId>
    <version>2.0.0</version>
</dependency>

Wicket8

<dependency>
    <groupId>jp.try0.wicket</groupId>
    <artifactId>wicket-toastr-core</artifactId>
    <version>1.0.2</version>
</dependency>

Initialize Settings

You can set default values, in the application initialize process(Application#init).

ToastrSettings.createInitializer(this)
.setAutoAppendBehavior(true)
.setMessageFilter(filter)
.setToastrBehaviorFactory(factory)
.initialize();

Display toast using ToastrBehavior

add ToastrBehavior to any of components in page

add(new ToastrBehavior());

or set true to setAutoAppendBehavior on initialize settings

ToastrSettings.createInitializer(this)
.setAutoAppendBehavior(true)

Component#success(Serializable), Session#success(Serializable)
⇒ success toast
toast_success

Component#info(Serializable), Session#info(Serializable)
⇒ info toast
toast_info

Component#warn(Serializable), Session#warn(Serializable)
⇒ warn toast
toast_warn

Component#error(Serializable), Session#error(SerializableSerializable)
Component#fatal(Serializable), Session#fatal(Serializable)
⇒ error toast
toast_error

Display toast manually

In this case, need instance of class that implemented IHeaderResponse or AjaxRequestTarget.

Toast.create(toastLevel, message)
.show(target);

Others

With title

Toast.create(toastLevel, message)
.withTitle(title)
.show(target);

With options

Overrides global options.

Toast.create(toastLevel, message)
.withToastOptions(options)
.show(target);

Версии библиотеки

Версия
2.0.0
1.0.2
1.0.1