Project

General

Profile

« Previous | Next » 

Revision c46954e3

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 RelatedEntityListSelect (ToOneRelatedEntityField) edit and select working, add blocked by #6673

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowPresenter.java
117 117
        getView().setWorkingset(workingset);
118 118
    }
119 119

  
120
    @EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).ADD")
120
    @EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).ADD && #event.source == null")
121 121
    public void onReferenceEditorActionAdd(ReferenceEditorAction event) {
122 122
        Reference reference = ReferenceFactory.newGeneric();
123 123
        ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class);
124 124
        popup.showInEditor(reference);
125 125
    }
126 126

  
127
    @EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).EDIT")
127
    @EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).EDIT && #event.source == null")
128 128
    public void onReferenceEditorActionEdit(ReferenceEditorAction event) {
129 129
        TransactionStatus tx = getRepo().startTransaction(false);
130 130
        Reference reference = getRepo().getReferenceService().find(event.getEntityId());
......
133 133
        getRepo().commitTransaction(tx);
134 134
    }
135 135

  
136
    @EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).EDIT")
136
    @EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).EDIT && #event.source == null")
137 137
    public void onRegistrationEditorAction(RegistrationEditorAction event) {
138 138
        TransactionStatus tx = getRepo().startTransaction(false);
139 139
        Registration registration = getRepo().getRegistrationService().find(event.getEntityId());
......
142 142
        getRepo().commitTransaction(tx);
143 143
    }
144 144

  
145
    @EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).EDIT")
145
    @EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).EDIT && #event.source == null")
146 146
    public void onTaxonNameEditorAction(TaxonNameEditorAction event) {
147 147
        TransactionStatus tx = getRepo().startTransaction(false);
148 148
        TaxonNameBase taxonName = getRepo().getNameService().find(event.getEntityId());

Also available in: Unified diff