facescontext

FacesContext == null

Hi all! I have a problem - I am trying to get FacesContext by calling FacesContext.getCurrentInstance(), but it returns null. I am using jsf with richfaces, here my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:we...

Icefaces Liferay portal navigation JSF problem

I have a final Submit button in my Application looks like : public String finalSubmitNavigate(){ // LOGIC HERE! FacesContext.getCurrentInstance().getApplication().getNavigationHandler().handleNavigation(FacesContext.getCurrentInstance(), null, "success"); return "success"; } I have also set navigation case in my faces-conf...

JSFUnit accessing FacesContext before JSFSession is created

I want to access the JSFUnit FacesContext before I create the JSFSession object. The reason for this is I would like to set a managed bean value before any request/response processing is done. I use this value in a filter. ...

FacesContext and "Servlet" Context

Hi, is there any equivalent to FacesContext, but in servlet environment? I have some DAOSessionManager that handles transaction to my database. I can use the FacesContext to identify the current http request when the current page is written using JSF, but what about servlet ones ? I can't find any way to get the current Servlet conte...