Changing the default message for the sessionExpiredErrorCaption and sessionExpiredErrorMessage

Hi Im using cuba version 7.0 and I’ve been trying to change the default message when the session expires. I see that the default message is given in sessionExpiredErrorMessage and sessionExpiredErrorCaption. Is there any way we can override these messages and put our custom messages ?

Hi

You can do this by adding parameters to the message.properties by path modules/web/src/com/company/{project name}/web/messages.properties
Add the following properties:

sessionExpiredErrorCaption=New Caption
sessionExpiredErrorMessage=New Message

Regards,
Vera

1 Like

Thank You Vera, this works.