users@glassfish.java.net

messages.properties in GF 2.1 and facelets

From: <glassfish_at_javadesktop.org>
Date: Sat, 04 Jul 2009 00:51:59 PDT

Hi,

In our project we use GF 2.1. We have a messages.properties with translations for fields like e.g. "javax.faces.converter.IntegerConverter.INTEGER". This used to work fine, but now since we started to use Facelets it does not work any more. The default messages is displayed instead of the messages in messages.properties.

This is from our faces-config.xml:

<application>
        <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
        <locale-config>
                <default-locale>sv</default-locale>
                <supported-locale>sv</supported-locale>
        </locale-config>
        <message-bundle>resources.messages</message-bundle>
</application>

The files "messages.properties" and "messages_sv.properties" are located in the folder "resources" in the classpath. The files have tha same contents, but non of them seems to be used!

Why did this stop working with facelets? Anyone have any experiences in this?

BR,
Mattias
[Message sent by forum member 'nightzero' (nightzero)]

http://forums.java.net/jive/thread.jspa?messageID=354115