• cdi
  • components
  • contexts
  • converters
  • eventlisteners
  • exceptionhandlers
  • facesviews
  • filters
  • functions
  • managedbeans
  • push
  • resourcehandlers
  • scripts
  • servlets
  • taghandlers
  • utils
  • validators
  • viewhandlers
-
  • Ajax
  • Beans
  • BeansLocal
  • Components
  • Events
  • Exceptions
  • Faces
  • FacesConfigXml
  • FacesLocal
  • JNDI
  • Messages
  • Servlets
  • WebXml

This configuration enum parses the /WEB-INF/faces-config.xml and all /META-INF/faces-config.xml files found in the classpath and offers methods to obtain information from them which is not available by the standard JSF API.

Usage

Some examples:

// Get a mapping of all <resource-bundle> vars and base names.
Map<String, String> resourceBundles = FacesConfigXml.INSTANCE.getResourceBundles();
// Get an ordered list of all <supported-locale> values with <default-locale> as first item.
List<Locale> supportedLocales = FacesConfigXml.INSTANCE.getSupportedLocales();

Feature request

If you know more useful methods/functions which you think should be added to this OmniFaces utility class so that everyone can benefit from a "standard" JSF utility library, feel free to post a feature request.

Documentation & Sources