private void laddaButton() {
Form form = new Form("laddaForm");
add(form);
LaddaAjaxButton laddaButton = new LaddaAjaxButton("laddaButton", Model.of("Button, 3secs"), form, Buttons.Type.Info) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
Duration.seconds(3).sleep();
}
};
laddaButton.setSize(Buttons.Size.Small);
LaddaAjaxLink<String> laddaLink = new LaddaAjaxLink<String>("laddaLink", Model.of("Link, 2secs"), Buttons.Type.Success) {
@Override
public void onClick(AjaxRequestTarget target) {
Duration.seconds(2).sleep();