submit.setOutputMarkupId(true);
submit.setEnabled(false);
form.add(submit);
final TextField<String> text = new TextField<String>("text");
text.setRequired(true);
text.add(new StringValidator(4, null));
text.add(new AjaxFormValidatingBehavior(form, "onkeyup")
{
private static final long serialVersionUID = 1L;
@Override