Revision 0844524a
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNamePopupEditor.java | ||
---|---|---|
13 | 13 |
import java.util.HashMap; |
14 | 14 |
import java.util.List; |
15 | 15 |
import java.util.Map; |
16 |
import java.util.UUID; |
|
16 | 17 |
|
17 | 18 |
import org.apache.commons.lang3.BooleanUtils; |
18 | 19 |
import org.apache.log4j.Level; |
... | ... | |
282 | 283 |
getViewEventBus().publish(this, |
283 | 284 |
new ReferenceEditorAction( |
284 | 285 |
EditorActionType.EDIT, |
285 |
nomReferenceCombobox.getValue().getId(),
|
|
286 |
nomReferenceCombobox.getValue().getUuid(),
|
|
286 | 287 |
nomReferenceCombobox, |
287 | 288 |
this) |
288 | 289 |
); |
... | ... | |
318 | 319 |
basionymsComboboxSelect.setEditActionListener(e -> { |
319 | 320 |
|
320 | 321 |
Object fieldValue = e.getSource().getValue(); |
321 |
Integer beanId = null;
|
|
322 |
UUID beanUuid = null;
|
|
322 | 323 |
if(fieldValue != null){ |
323 |
beanId = ((CdmBase)fieldValue).getId();
|
|
324 |
beanUuid = ((CdmBase)fieldValue).getUuid();
|
|
324 | 325 |
|
325 | 326 |
} |
326 |
getViewEventBus().publish(this, new TaxonNameEditorAction(e.getAction(), beanId, e.getSource(), this));
|
|
327 |
getViewEventBus().publish(this, new TaxonNameEditorAction(e.getAction(), beanUuid, e.getSource(), this));
|
|
327 | 328 |
}); |
328 | 329 |
grid.setComponentAlignment(basionymsComboboxSelect, Alignment.TOP_RIGHT); |
329 | 330 |
row++; |
Also available in: Unified diff
switching vom id based to uuid based ui navigation and entity references