You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Manfred Geiler (JIRA)" <in...@incubator.apache.org> on 2004/11/22 17:02:25 UTC
[jira] Created: (MYFACES-28) problem with localized Bundle
<h:message> problem with localized Bundle
-----------------------------------------
Key: MYFACES-28
URL: http://nagoya.apache.org/jira/browse/MYFACES-28
Project: MyFaces
Type: Bug
Versions: 1.0.7 beta
Reporter: Manfred Geiler
>From a post to myfaces-user@lists.sourceforge.net by calugi@istitutodeglinnocenti.it:
Hello,
I have a form with 8 fields. This fields cannot be blank, so I use <h:message>
to display the error. It works fine, but I want to custom the errors (in
Italian language).
I have a class(Bundles),inside I have a properties file (Messages_it.properties)
with the text customized.
I have registred it in faces-config.xml (
<application>
<message-bundle>Bundles.Messages_it</message-bundle>
</application>
and in jsp page I call it with :
<f:loadBundle basename="Bundles.Messages" var="msgs" />.
With standar jsf libraries it works fine, but with myfaces libraries not.
Why?
Thanks...
-- Leonardo
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
Re: [jira] Created: (MYFACES-28) problem with localized Bundle
Posted by Peter Cheung <ps...@gmail.com>.
Did you set the logging level to "DEBUG" (see below), so that you can
find out more info of what might have gone wrong? This is from a
sample log4j config. for a Spring app.
log4j.rootLogger=DEBUG, stdout, logfile
# Defines the console logger.
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
# Defines the file logger, using the "web app root" system property
# (set by Log4jConfigListener) for a log file relative to the web app.
log4j.appender.logfile=org.apache.log4j.FileAppender
log4j.appender.logfile.File=C:/servers/Tomcat 5.0/logs/a.log
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
HTH.
On Mon, 22 Nov 2004 08:02:25 -0800 (PST), Manfred Geiler (JIRA)
<in...@incubator.apache.org> wrote:
> <h:message> problem with localized Bundle
> -----------------------------------------
>
> Key: MYFACES-28
> URL: http://nagoya.apache.org/jira/browse/MYFACES-28
> Project: MyFaces
> Type: Bug
> Versions: 1.0.7 beta
> Reporter: Manfred Geiler
>
> From a post to myfaces-user@lists.sourceforge.net by calugi@istitutodeglinnocenti.it:
>
> Hello,
> I have a form with 8 fields. This fields cannot be blank, so I use <h:message>
> to display the error. It works fine, but I want to custom the errors (in
> Italian language).
> I have a class(Bundles),inside I have a properties file (Messages_it.properties)
> with the text customized.
> I have registred it in faces-config.xml (
> <application>
> <message-bundle>Bundles.Messages_it</message-bundle>
> </application>
>
> and in jsp page I call it with :
> <f:loadBundle basename="Bundles.Messages" var="msgs" />.
> With standar jsf libraries it works fine, but with myfaces libraries not.
> Why?
> Thanks...
>
> -- Leonardo
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://nagoya.apache.org/jira/secure/Administrators.jspa
> -
> If you want more information on JIRA, or have a bug to report see:
> http://www.atlassian.com/software/jira
>
>