Top "Facescontext" questions

This tag denotes the FacesContext class which is part of the Java Server Faces (JSF) model view presenter framework.

What is FacesContext used for?

What is FacesContext used for? And where exactly is it implemented?

jsf jsf-2 facescontext
How to use FacesContext.getCurrentInstance(), it returns null

I've been struggling for the last couple of days with the login part of my web app. I've gotten to …

jsf null instance facescontext
What is the difference between FacesContext and ExternalContext

What is the difference between FacesContext and ExternalContext? When can I use one or other? What has the one and …

jsf-2 facescontext externalcontext
Mocking FacesContext

I am trying to add some unit tests to a JSF application. This application didnt rely heavily on any best …

unit-testing jsf groovy mocking facescontext
java.lang.RuntimeException Cannot find FacesContext

I don't know how to continue, but I always get the "java.lang.RuntimeException: Cannot find FacesContext" for my new …

jsp jsf tomcat runtimeexception facescontext
Failed to retrieve Session from FacesContext inside a Servlet Filter

After autheticating my user, I want to put a reference in the session to current logged in user. Here how …

jsf session servlet-filters facescontext
How to resolve JSF1095 Flash Warning "Response already committed" in f:selectItems component?

I meet a strange behavior with JSF 2.4 on Mojarra. I'm using flash parameters to pass from a page to another. …

httpresponse jsf-2.2 postconstruct facescontext flash-scope
Getting the current global messages from FacesContext

I have a problem. I need to know whether my page has global errors or not. This is because I …

java jsf facescontext
FacesContext not found

my jsp page is: Home.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> &…

jsf facescontext
JSF - java method: getCurrentUserName

I'm able to pass the username from JSF to managed bean e.g. this way: <script type="text/javascript" &…

session jsf jsf-2 facescontext