Revision 580d5157
Added by Andreas Kohlbecker about 5 years ago
src/main/java/eu/etaxonomy/vaadin/component/ToOneRelatedEntityCombobox.java | ||
---|---|---|
57 | 57 |
this.type = type; |
58 | 58 |
setCaption(caption); |
59 | 59 |
lazySelect = new ReloadableLazyComboBox<V>(type); |
60 |
lazySelect.setValidationVisible(false); // validation is to be shown for the ToOneRelatedEntityCombobox |
|
61 | 60 |
lazySelect.setRequiredError("Must be given"); |
62 | 61 |
setRequiredError("Must be given"); |
63 | 62 |
addStyledComponents(lazySelect, addButton, editButton); |
... | ... | |
197 | 196 |
lazySelect.commit(); |
198 | 197 |
} catch (InvalidValueException ex){ |
199 | 198 |
UserError componentError = new UserError(ex.getHtmlMessage(), ContentMode.HTML, ErrorLevel.ERROR); |
200 |
setComponentError(componentError); |
|
199 |
lazySelect.setComponentError(componentError);
|
|
201 | 200 |
} |
202 | 201 |
} |
203 | 202 |
|
Also available in: Unified diff
ref #8050 validing related name nomenclatural reference to require the user to add missing references when reusing an exising name