What is the use of faces-config.xml in JSF 2?
It’s still to be used for many things which can’t be annotated. E.g. custom JSF validation messages: <application> <message-bundle>com.example.i18n.messages</message-bundle> </application> A global i18n bundle (so that you don’t need to declare <f:loadBundle> in every view): <application> <resource-bundle> <base-name>com.example.i18n.Text</base-name> <var>text</var> </resource-bundle> </application> Explicitly supported i18n locales (so that the not-declared ones will be ignored even though … Read more