Skip to content

Conversation

javier-godoy
Copy link
Member

@javier-godoy javier-godoy commented Oct 19, 2022

Also initialize it the first time that getChildren is called (even if it isn't attached) in order to allow reusing the dialog contents in
ErrorView:

new ErrorWindow(parameter.getCaughtException(), i18n) {
@Override
public void close() {
UI.getCurrent().getPage().getHistory().back();
}
}.getChildren().forEach(this::add);

Close #44

Also initialize it the first time that getChildren is called (even if it isn't attached) in order to allow reusing the dialog contents in ErrorView.

Close #44
@paodb paodb merged commit 376370e into master Oct 31, 2022
@paodb paodb deleted the refactor-errorWindow-init branch October 31, 2022 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ErrorWindow constructor should not call overridable methods
2 participants