};
submit.setDefaultFormProcessing(false);
add(submit);
submit.add(new IconImage("icon", getSubmitIcon()));
AjaxLink<Void> cancel = new AjaxLink<Void>("cancel")
{
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target)
{
onCancel(target);
}
@Override
public boolean isVisible()
{
return getGrid().isItemEdited(model);
}
};
add(cancel);
cancel.add(new IconImage("icon", getCancelIcon()));
}