dev@javaserverfaces.java.net

Re: Disabling state saving in JSF

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Sun, 25 Jan 2009 13:38:57 -0800

Ralph Bunker wrote:
> Is there any way to disable state saving in JSF?
> The context parameter javax.faces.STATE_SAVING_METHOD seems to only
> have two values "client" and "server" and defaults to server if it is
> omitted.
>
> If the answer to the above is yes, then is there any way to
> selectively disable
> state saving for specific controls?
You can mark a component as transient (if it's an instance of StateHolder).
If you're using Facelets as your view technology, you should be able to
specify f:view in the page with the attribute transient=true to mark the
entire view as transient.

>
> ASP.NET has an EnableViewState attribute.
>
> thanks,
> --ralph
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>