What is the difference between FacesContext and ExternalContext

Carefully look in their javadocs to see what methods they offer and what exactly those methods all do. FacesContext javadoc ExternalContext javadoc If you look closer at those methods listed in the javadoc, you’ll notice that the FacesContext generally offers access to JSF-specific artifacts which are further in no way related to the “underlying” Servlet … Read more

What is FacesContext used for?

Quote from chapter 6.1 of JSF 2.0 specification: FacesContext JSF defines the javax.faces.context.FacesContext abstract base class for representing all of the contextual information associated with processing an incoming request, and creating the corresponding response. A FacesContext instance is created by the JSF implementation, prior to beginning the request processing lifecycle, by a call to the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)