Skip to content
Snippets Groups Projects
Commit a5291248 authored by felmer's avatar felmer
Browse files

LMS-2451 done

SVN: 22771
parent 591c87b0
No related branches found
No related tags found
No related merge requests found
...@@ -323,13 +323,15 @@ abstract public class AbstractGenericSampleRegisterEditForm extends ...@@ -323,13 +323,15 @@ abstract public class AbstractGenericSampleRegisterEditForm extends
.withSuffix(getSampleTypeCode())); .withSuffix(getSampleTypeCode()));
experimentField = createExperimentField(); experimentField = createExperimentField();
experimentField.getChooserField().setId(getId() + ID_SUFFIX_EXPERIMENT); experimentField.getChooserField().setId(getId() + ID_SUFFIX_EXPERIMENT);
experimentField.getChooserField().addChosenEntityListener(new IChosenEntityListener<TableModelRowWithObject<Experiment>>() experimentField.getChooserField().addChosenEntityListener(
{ new IChosenEntityListener<TableModelRowWithObject<Experiment>>()
public void entityChosen(TableModelRowWithObject<Experiment> entity) {
{ public void entityChosen(TableModelRowWithObject<Experiment> entity)
groupSelectionWidget.setValue(new SpaceModel(entity.getObjectOrNull().getProject().getSpace())); {
} groupSelectionWidget.setValue(new SpaceModel(entity.getObjectOrNull()
}); .getProject().getSpace()));
}
});
attachmentsManager = new AttachmentsFileFieldManager(attachmentsSessionKey, viewContext); attachmentsManager = new AttachmentsFileFieldManager(attachmentsSessionKey, viewContext);
formPanel.addListener(Events.Submit, new FormPanelListener(infoBox) formPanel.addListener(Events.Submit, new FormPanelListener(infoBox)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment