title: How to add two properties files to JSF
body: <p>I have two properties files, but something is wrong, inputStream is always null?</p>
  
  <pre><code>&lt;application&gt;
      &lt;resource-bundle&gt;
          &lt;base-name&gt;resources/Bundle&lt;/base-name&gt;
          &lt;var&gt;bundle&lt;/var&gt;
      &lt;/resource-bundle&gt;
      &lt;locale-config&gt;
          &lt;default-locale&gt;fi&lt;/default-locale&gt;
          &lt;supported-locale&gt;fi&lt;/supported-locale&gt;
  
      &lt;/locale-config&gt;
  
      &lt;resource-bundle&gt;
          &lt;base-name&gt;resources/avainsanat&lt;/base-name&gt;
          &lt;var&gt;avainsanat&lt;/var&gt;
      &lt;/resource-bundle&gt;
  &lt;/application&gt;
  
   public static List getAvainsanat() throws IOException {
      InputStream input = Thread.currentThread().getContextClassLoader().getResourceAsStream("avainsanat.properties");
  
      Properties properties = new Properties();
      List&lt;String&gt; values = new ArrayList&lt;&gt;();
      System.out.println("InputStream is: " + input);
  
      for (String key : properties.stringPropertyNames()) {
          String value = properties.getProperty(key);
          values.add(value);
  
      }
      return values;
  }
  </code></pre>
  
  <p>Is it even possible to have two or more properties files in faces-config? If not, how can I read from my bundle only those properties which key has a prefix key_?</p>
  
  <p>Thanks
  Sami</p>