title: Using Multiple Resource bundles in JSF
body: <p>I am trying to access multiple resource bundles from a JSF page. I have two resource bundles:</p>
  
  <ul>
  <li><code>general_messages.properties</code></li>
  <li><code>module_message.properties</code></li>
  </ul>
  
  <p>I want to access both these resource bundles in a JSF file. One way I can do this is to define specific properties for each of these bundles:</p>
  
  <pre><code>&lt;f:loadBundle basename="com.sample.general_messages" var="general"/&gt;
  &lt;f:loadBundle basename="com.sample.module_message" var="module"/&gt;
  </code></pre>
  
  <p>Is there a way I can access both these resource bundles using the same variable name. 
  Something like:</p>
  
  <pre><code>&lt;f:loadBundle basename="com.sample.general_messages, com.sample.module_message" var="general"/&gt;
  </code></pre>
  
  <p>Or any other best way to access multiple resource bundles?</p>