Search code examples
javapropertiestapestry

Tapestry 5.4 core.properties override


I have a tapestry 5.4 project, and I want to override one element of the default core.properties file.

I tried to add to login_en.properties and login_hu.properties a new line (core-default-error-banner=...) but it do not override it.

Is there any way to overwrite it?

Thanks for the answers in advance.


Solution

  • If you intend to overwrite the header line of the Errors component, just specify your own message id in the page/component template like this:

    <t:errors banner="message:your-translated-error-msg-id" />