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/cdm/vaadin/view/registration/StartRegistrationViewBean.java
9 9
package eu.etaxonomy.cdm.vaadin.view.registration;
10 10

  
11 11
import java.util.Collection;
12
import java.util.UUID;
12 13

  
13 14
import org.springframework.security.core.GrantedAuthority;
14 15
import org.vaadin.viritin.fields.LazyComboBox;
......
128 129
        continueButton.setEnabled(false);
129 130
        continueButton.addClickListener(e -> {
130 131

  
131
            Integer refId = null;
132
            UUID refUuid = null;
132 133
            referenceCombobox.commit();
133 134
            if(referenceCombobox.getValue() != null){
134
                refId = referenceCombobox.getValue().getId();
135
                refUuid = referenceCombobox.getValue().getUuid();
135 136
            }
136 137
            getViewEventBus().publish(this,
137 138
                new RegistrationEditorAction(EditorActionType.ADD,
138 139
                        // passing the refId is hack, bit for some reason the presenter is always referring to the wrong view
139
                        refId,
140
                        refUuid,
140 141
                        continueButton,
141 142
                        StartRegistrationViewBean.this)
142 143
                );

Also available in: Unified diff