By default when we create a web application faces-config.xml doesnt created automatically. We must create him manually and as I understood faces-config.xml must be located strictly in WEB-INF.
So, my question:
Do I have to register faces-config.xml in web.xml after creation in WEB-INF or other folder or is it registered automatically. I.e. does JSF "know" what is the faces-config.xml and can find him in all project's folder.
Hope, I asked correct question.;)
As taken from
FacesServletdocumentation:You can put your configuration file elsewhere in your webapp, but you need to keep in mind the following facts:
WEB-INF/META-INFfolders;You need to add the following entry to your web.xml:
Otherwise the faces-config.xml is loaded automatically if found in some predefined locations.