JMIX Version 2.4
I am using this method described in the documentation to modify the title of a window.
This method worked correctly in previous versions.
@Override
public String getPageTitle() {
User user = getEditedEntity();
return entityStates.isNew(user)
? messageBundle.getMessage(“newUserTitle”)
: messageBundle.formatMessage(“editUserTitle”, metadataTools.getInstanceName(user));
}
But throws this error:
Caused by: java.lang.IllegalStateException: Edited entity isn’t initialized yet
Could you tell me any other way to change the window title?
Thanks in advance.