Revision 2a3d1ef0
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowPresenter.java | ||
---|---|---|
146 | 146 |
@EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).EDIT && #event.sourceComponent == null") |
147 | 147 |
public void onTaxonNameEditorAction(TaxonNameEditorAction event) { |
148 | 148 |
TransactionStatus tx = getRepo().startTransaction(false); |
149 |
TaxonName taxonName = getRepo().getNameService().find(event.getEntityId()); |
|
149 |
// FIXME optional: |
|
150 |
// A) allow full initialization of the entity here the Preseneter of the Editor should |
|
151 |
// provide the intiStratirey via a static method so that it can be used |
|
152 |
// B) only pass the identifier (Object) to the View and the Presenter is reponsible for |
|
153 |
// loading and initializing the entitiy |
|
154 |
TaxonName taxonName = getRepo().getNameService().find(event.getEntityId()); |
|
150 | 155 |
TaxonNamePopupEditor popup = getNavigationManager().showInPopup(TaxonNamePopupEditor.class); |
151 | 156 |
popup.showInEditor(taxonName); |
152 | 157 |
popup.withDeleteButton(true); |
Also available in: Unified diff
ref #6687 attempt to get rid of the hibernate.event.merge.entity_copy_observer=allow - not working yet