You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Arthur Portas <ar...@itsector.pt> on 2015/10/16 18:32:37 UTC

Can't override JSF buil-in validator messages from resource bundle (database)

Hi, in my webapp with JSF i'm loading translation from DB as
<resource-bundle>
<base-name>pt.commons.i18n.DBResourceBundle</base-name>
      <var>messages</var>
    </resource-bundle>
So, translations are loaded fine in .xhtml files like in EL
#{messages['aaa.bbb']}, but
i'm trying to override JSF built-in validator messages and they can't seem
to get picked up.

I'm violating this constraint and this key is not being asked on my
resource bundle.

-----------------
javax.faces.validator.LengthValidator.MAXIMUM
{1}: Campo inválido: Tamanho excede o valor máximo de "{0}".     <-pt
{1}: Validation error: Length is greater than allowable maximum of "{0}".
<-en
-----------------
Any ideas?
Cheers,
Arthur Portas