fieldWithError.addValidator(validator);
fieldWithError.setConverter(Integer.class);
fieldWithError.setImmediate(true);
TextField fieldWithoutError = new TextField();
fieldWithoutError.addValidator(validator);
fieldWithoutError.setConverter(Integer.class);
fieldWithoutError.setValue("42");
addComponent(fieldWithError);
addComponent(fieldWithoutError);
}