duminică, 13 septembrie 2015

JSF 2.3 Injection and EL resolving of JSF artifacts

As you probably know, JSF uses static entry methods and chaining to let the user obtain the various artifacts that it provides, such as the FacesContext, session map, external context, etc. But, this is pretty verbose and sometimes hard to intuit and understand. JSF 2.3 will therefore provide default producers for the most important artifacts, which at the moment being:


If you still need to rely on static methods, then you have to know that OmniFaces provides a set of utilities in the org.omnifaces.util.Faces class. These are basically shortcuts that "hides" the chained calls:

More details are available on What's new in JSF 2.3 ? by Arjan Tijms.

Niciun comentariu:

Trimiteți un comentariu