1 Reply Latest reply on Jan 25, 2007 12:18 PM by pmuir

    Resourcebundle question

    yoav200

      Hello,

      I try to convert a resource into a selectList and run in few problems.
      in my components.xml i have:

      <component name="org.jboss.seam.core.resourceBundle">
       <property name="bundleNames">
       <value>countries</value>
       <value>airLines</value>
       </property>
      </component>
      


      in one of my beans i try to inject the resource like this:

      @In(required=false)
      Map<String, String> countries;
      
      @In(required=false)
      Map<String, String> airLines;
      


      when looking at seam debug i can see the the resourceBundle-->bundleNames has the countries and airLines but in my bean they are null.



        • 1. Re: Resourcebundle question
          pmuir

          That's not how the resource bundle component works in Seam (and I doubt it ever will be - the point of the seam resource bundles is to load messages for i8ln).

          If you really want to do this then I suggest loading a resource bundle the old fashioned way (or write your own manager component to wrap this up and use injection).