Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier ‘bean’ resolved to null

I would like to post a complete solution, what should be done in order to make JSF 2.3 libs work in JSF v2.3 mode. Code samples below are based on GlassFish 5.0 server environment. 1) Upgrade JSF libs to the version 2.3.3 at least (it fixes some bugs related to jsf 2.3 mode activation) 2) … Read more

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