@Override
protected void setup() {
Button bb = new Button("Button with CompositeError");
List<UserError> errors = new ArrayList<UserError>();
errors.add(new UserError("Error 1"));
errors.add(new UserError("Error 2"));
bb.setComponentError(new CompositeErrorMessage(errors));
addComponent(bb);
TextField tf = new TextField("", "Textfield with UserError");
tf.setComponentError(new UserError("This is a failure"));
addComponent(tf);
ComboBox cb = new ComboBox("ComboBox with description and UserError");
cb.setDescription("This is a combobox");
cb.setComponentError(new UserError("This is a failure"));
addComponent(cb);
}