JSF Tip #26 - JSF is going Stateless

If you have wanted JSF not to store any state now is your chance to try out the stateless mode of JSF.

It is as easy as doing the following:


    <f:view transient="true">
        Your regular content
    </f:view>
        

And voila you are running stateless.

If you decide you do want some state to be kept at the server you can use the @xxxScoped annotations on your beans

Be aware that because of the fact that the stateless mode does not keep a view around the @ViewScoped annotation degrades to the same behavior as @RequestScoped.

OK I want to try it out, where do I get this version? Grab the latest 2.1 release from here

Please report any bugs you see with this at the regular Mojarra bug tracker!

Posted February 8, 2013

Up