aspose file tools*
The moose likes JSF and the fly likes Is FacesContext an object for entire aplication, or it's instantiated for each jsf page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Is FacesContext an object for entire aplication, or it Watch "Is FacesContext an object for entire aplication, or it New topic
Author

Is FacesContext an object for entire aplication, or it's instantiated for each jsf page?

Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147
Is FacesContext an object for entire aplication, or it's instantiated for each jsf page?


If you think you've done too much, usually it means you've done too few.
viswanath yadav
Greenhorn

Joined: May 25, 2009
Posts: 15


FacesContext object is created for entire application, and it handle multiple faces requests.


Thanks

A.Viswanath Yadav
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16054
    
  21

viswanath yadav wrote:

FacesContext object is created for entire application, and it handle multiple faces requests.


Thanks

A.Viswanath Yadav


No.

The FacesContext is created and destroyed on every JSF page request. In between page requests, it doesn't exist at all.

One of the more common problems people have with JSF, in fact, is that they attempt to access the FacesContext while handling a non-JSF request such as in a servlet, non-JSF JSP or Struts Action. They fail on a NullPointerException.

JSF is not a "Master Control Program".


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is FacesContext an object for entire aplication, or it's instantiated for each jsf page?