Project

General

Profile

Revision c4f3380a

IDc4f3380a5b2c8c725e2d9899b4200edd19213855
Parent 61b6ce4e
Child 39acd47c

Added by Andreas Kohlbecker over 1 year ago

fix #7946 setting the status value directly in the RegistrationStatusFieldInstantiator

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java
249 249
                        RegistrationStatus.class,
250 250
                        availableStatus.toArray(new RegistrationStatus[availableStatus.size()]))
251 251
                        );
252
                select.setValue(regDto.getStatus());
252 253
                select.addValueChangeListener(e -> saveRegistrationStatusChange(regDto.getUuid(), e.getProperty().getValue()));
253 254
                select.setEnabled(canChangeStatus);
254 255
                select.setNullSelectionAllowed(false);
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorksetViewBean.java
31 31
import com.vaadin.server.Page;
32 32
import com.vaadin.shared.ui.label.ContentMode;
33 33
import com.vaadin.spring.annotation.SpringView;
34
import com.vaadin.ui.AbstractField;
35 34
import com.vaadin.ui.Alignment;
36 35
import com.vaadin.ui.Button;
37 36
import com.vaadin.ui.Component;
......
437 436

  
438 437
        Component statusComponent;
439 438
        if(statusFieldInstantiator != null){
440
            AbstractField<Object> statusField = statusFieldInstantiator.create(dto);
441
            statusField.setValue(dto.getStatus());
442
            statusComponent = statusField;
439
            statusComponent = statusFieldInstantiator.create(dto);
443 440
        } else {
444 441
            statusComponent = new RegistrationStatusLabel().update(dto.getStatus());
445 442
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)