Project

General

Profile

« Previous | Next » 

Revision be4a9789

Added by Andreas Kohlbecker about 6 years ago

fix #7231 replacing SpringApplicationEventBus by scoped Vaadin4Spring Event Bus

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/StartRegistrationViewBean.java
88 88
        });
89 89

  
90 90
        newPublicationButton = new Button("New");
91
        newPublicationButton.addClickListener( e -> eventBus.publishEvent(
91
        newPublicationButton.addClickListener( e -> getViewEventBus().publish(this,
92 92
                new ReferenceEditorAction(EditorActionType.ADD, newPublicationButton)
93 93
                ));
94 94
        newPublicationButton.setCaption("New");
......
100 100
        removeNewPublicationButton = new Button("Delete");
101 101
        removeNewPublicationButton.setStyleName(ValoTheme.BUTTON_DANGER);
102 102
        removeNewPublicationButton.setWidth(ELEMENT_WIDTH);
103
        removeNewPublicationButton.addClickListener( e -> eventBus.publishEvent(
103
        removeNewPublicationButton.addClickListener( e -> getViewEventBus().publish(this,
104 104
                new ReferenceEditorAction(EditorActionType.REMOVE, removeNewPublicationButton)
105 105
                ));
106 106

  
......
133 133
            if(referenceCombobox.getValue() != null){
134 134
                refId = referenceCombobox.getValue().getId();
135 135
            }
136
            eventBus.publishEvent(
136
            getViewEventBus().publish(this,
137 137
                new RegistrationEditorAction(EditorActionType.ADD,
138 138
                        // passing the refId is hack, bit for some reason the presenter is always referring to the wrong view
139 139
                        refId,

Also available in: Unified diff