Project

General

Profile

« Previous | Next » 

Revision 0844524a

Added by Andreas Kohlbecker about 6 years ago

switching vom id based to uuid based ui navigation and entity references

View differences:

src/main/java/eu/etaxonomy/vaadin/event/EntityEditorActionListener.java
15 15
    myComboboxSelect.setEditActionListener(e -> {
16 16

  
17 17
            Object fieldValue = e.getSource().getValue();
18
            Integer beanId = null;
18
            UUID beanUuid = null;
19 19
            if(fieldValue != null){
20
                beanId = ((CdmBase)fieldValue).getId();
20
                beanUuid = ((CdmBase)fieldValue).getUUid();
21 21

  
22 22
            }
23
            getViewEventBus().publish(this, new SomeEditorAction(e.getAction(), beanId, e.getSource(), this));
23
            getViewEventBus().publish(this, new SomeEditorAction(e.getAction(), beanUuid, e.getSource(), this));
24 24
        });
25 25
  }
26 26
 *</pre>

Also available in: Unified diff