Revision 3ddd6c8d
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/TimePeriodField.java | ||
---|---|---|
11 | 11 |
import java.util.HashSet; |
12 | 12 |
import java.util.Set; |
13 | 13 |
|
14 |
import com.vaadin.data.Validator.InvalidValueException; |
|
14 | 15 |
import com.vaadin.data.fieldgroup.BeanFieldGroup; |
15 | 16 |
import com.vaadin.data.fieldgroup.FieldGroup.CommitException; |
16 | 17 |
import com.vaadin.data.util.BeanItem; |
... | ... | |
270 | 271 |
return TimePeriod.class; |
271 | 272 |
} |
272 | 273 |
|
274 |
/** |
|
275 |
* {@inheritDoc} |
|
276 |
*/ |
|
277 |
@Override |
|
278 |
public void commit() throws SourceException, InvalidValueException { |
|
279 |
super.commit(); |
|
280 |
try { |
|
281 |
fieldGroup.commit(); |
|
282 |
} catch (CommitException e) { |
|
283 |
throw new RuntimeException(e); |
|
284 |
} |
|
285 |
} |
|
286 |
|
|
287 |
|
|
288 |
|
|
273 | 289 |
|
274 | 290 |
|
275 | 291 |
} |
Also available in: Unified diff
fixing TimePeriodField being not committed