wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF component are stateful" Watch "JSF component are stateful" New topic
Author

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.

Thanks.
nisu pathak
Greenhorn

Joined: Nov 03, 2013
Posts: 29
hi.
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 page.so 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 !!
thanks
Regards
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

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.


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: JSF component are stateful
 
Similar Threads
Tech Word Game
Using the rendered attribute nulls my value related backing bean variable.
how to erase or hide or delete components in a page using JSF
JSF component id problem
Part 2/Assignment Question