@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
super.updateAjaxAttributes(attributes);
AjaxCallListener ajaxCallListener = new AjaxCallListener();
ajaxCallListener.onSuccess("alert('Success');");
ajaxCallListener.onFailure("alert('Failure');");
ajaxCallListener.onBefore("alert('Before ajax call');");
}
};
link2.add(new AttributeAppender("class", Model.of("link2"), " "));
Label label2 = new Label(MenuItem.CAPTION_ID, "One");