Search This Blog

Thursday, November 08, 2018

Stateless JSF Example

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

Works for Mojarra >=2.1.19

Stateless means that the JSF State Manager isn’t storing any data into the memory related to this view.

During restore view phase, the view is created without any state applied to it.

For stateless transient view, viewScoped bean degrades to requestScope even you stay in the same view. The other scopes aren't affected.