ViewConfigurer is fired after entity is set to container, i.e. after InitEntityEvent is fired.
Steps To Reproduce
Assume that InitEntityEvent handles custom parameter, e.g.:
@Subscribe
public void onInitEntity(final InitEntityEvent<TimeEntry> event) {
TimeEntry timeEntry = event.getEntity();
if (ownTimeEntry) {
...
}
...
}
Using the following code to initialize ownTimeEntry, i.e. ViewConfigurer, we won't get passes value, because ViewConfigurer is fired after InitEntityEvent is fired.
Environment
Jmix version: 2.3
Bug Description
ViewConfigurer
is fired after entity is set to container, i.e. afterInitEntityEvent
is fired.Steps To Reproduce
Assume that
InitEntityEvent
handles custom parameter, e.g.:Using the following code to initialize
ownTimeEntry
, i.e.ViewConfigurer
, we won't get passes value, becauseViewConfigurer
is fired afterInitEntityEvent
is fired.Current Behavior
ViewConfigurer
is fired afterInitEntityEvent
is fired.Expected Behavior
ViewConfigurer
is fired beforeInitEntityEvent
is fired.