I'm using JBoss 4.0.5 GA.
In both jboss-seam-CVS.20061118 and jboss-seam-CVS.20061120,
I don't get a message associated with a key anymore.
My components.xml file declare the following
<component name="resourceBundle">
<property name="bundleNames">
<value>resources.ApplicationMessages</value>
<value>resources.ErrorMessages</value>
</property>
</component>
In org.jboss.seam.core.Massages, bundle is null and the get method return the key itself
@Override
public String get(Object key) {
if (key instanceof String)
{
String resourceKey = (String) key;
/*String cachedValue = cache.get(key);
if (cachedValue==null)
{*/
String resource=null;
if (bundle!=null)
{
try
{
resource = bundle.getString(resourceKey);
}
catch (MissingResourceException mre)
{
//Just swallow
}
}
if (resource==null)
{
return resourceKey;
}
else
...
I look at the ResourceBundle class and the list of bundle names is still set to "messages". Since I don't have such a file, it failed and thus the null bundle object.
This is where I stopped investigating for now, but it seems to me that the initialisation of the component must not have been done properly.
Is it a bug or is my components.xml file out of date?
Thanks,
Richard