tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arthur Portas <arthur.por...@itsector.pt>
Subject Can't override JSF buil-in validator messages from resource bundle (database)
Date Fri, 16 Oct 2015 16:32:37 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message