How to translate sessionExpiredCaption when expried session? , like that:
I tried change message: sessionExpiredCaption and sessionExpiredMessage, but it not working. Help me!
Thanks and regards,
How to translate sessionExpiredCaption when expried session? , like that:
I tried change message: sessionExpiredCaption and sessionExpiredMessage, but it not working. Help me!
Thanks and regards,
You can extend JmixVaadinServlet
class TestVaadinServlet(applicationContext: ApplicationContext) : JmixVaadinServlet(applicationContext) {
override fun servletInitialized() {
super.servletInitialized()
service.systemMessagesProvider = SystemMessagesProvider {
val messages = CustomizedSystemMessages()
messages.sessionExpiredMessage = "Test Message"
messages.sessionExpiredCaption = "Session Caption"
messages
}
}
}
And add bean:
@Bean
@Primary
open fun vaadinServlet(): VaadinServlet {
return TestVaadinServlet(applicationContext)
}
Thank you for your answer, let me try