2 Replies Latest reply on Nov 20, 2006 1:41 PM by Richard Leherpeur

    resourceBundle broken?

    Richard Leherpeur Novice

      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">

      In org.jboss.seam.core.Massages, bundle is null and the get method return the key itself

       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)
       resource = bundle.getString(resourceKey);
       catch (MissingResourceException mre)
       //Just swallow
       if (resource==null)
       return resourceKey;

      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?