JSF Tip #33 - Stateless JSF
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog
In a previous blog entry I blogged about stateless JSF before, this time I will include the entire page so you can see how silly simple it actually is. And you can also go directly to Subversion to get the sample there.
The entirely stateless page
<?xml version='1.0' encoding='UTF-8'?>
This is completely (view-)stateless.
As you can see you can use a form and a commandButton. It will still do a post back it just will not cache the Facelets page so it will rebuild it every time.
Note the code for this sample is available as part of the Glassfish samples (see the subversion repository at http://svn.java.net/svn/glassfish-samples~svn/trunk/ws/javaee7)
And that is it.