myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omidh <>
Subject ValueBinding throw a servlet
Date Thu, 10 May 2007 05:40:48 GMT

Hi all,

I wrote a servlet for File Download. I am developing a portlet and the
download is from a DB.
So when I am in the servlet doGet() and try to receive a bean from the
I get a NullPointerException, here the code:

FacesContext fctx = FacesContext.getCurrentInstance();
		//DetailsBean bean =
		ValueBinding bind = FacesContext.getCurrentInstance().getApplication().
		DetailsBean bean = (DetailsBean)bind.getValue(fctx); 

the faces-config Entry:


any ideas?

thanks in advance,
View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message