File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF component are stateful Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF component are stateful" Watch "JSF component are stateful" New topic

JSF component are stateful

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
"JSF component are stateful".

What does this mean? Can anyone explain me this with an example.

nisu pathak

Joined: Nov 03, 2013
Posts: 29
yes jsf is state full.using FacesContext you can have per-request state information related to the processing of a single Java Server Faces request and server side view is associated with per jsf that it will keep state of managed beans which are configured in particular .xhtml file.
so yes jsf is state full only because server side view is maintained which will keep some state information of concerned managed bean.

hope you will get it !!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

There have been discussions about making JSF stateless, but they puzzle me. Seems kind of contradictory to the whole concept, although there is a definite use for stateless web functionality.

JSF is a pretty pure implementation of the Model/View/Controller paradigm, and that pretty much contains state as part of its fundamental definition. The Controllers keep the models in Sync with the Views. Which implies that the Models have a non-zero temporal dimension, since they can have "before" and "after" values. Ultimately to me that implies state even if the model has to be torn down and reconstructed between operations.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF component are stateful
It's not a secret anymore!