1

To declare a resource bundle in the faces-config.xml I always put them into \src\main\resources\com\company\messages.properties and reference them like this:

<resource-bundle>
  <base-name>com.company.messages</base-name>
  <var>messages</var>
</resource-bundle>

But as far as I know property files can be also put into the \WEB-INF\classes directory. Is there a possibility to also declare these files in faces-config.xml? Because they don't have a package name.

Benny Code
  • 51,456
  • 28
  • 233
  • 198
  • 2
    Build your project and take a look in the `WEB-INF\classes\com\company` dir. You should see your `messages.properties`. Maven actually builds it to the class path. Anything in a `src\main\resources` get built to the root of the class path, in the case of a webapp `WEB-INF\classes` – Paul Samsotha Jun 25 '14 at 17:22

0 Answers0