webtier@glassfish.java.net

Control 'partial state saving' on a per-component basis?

From: <webtier_at_javadesktop.org>
Date: Mon, 24 May 2010 20:18:01 PDT

Hi guys,

I am trying to migrate my component library from JSF 1.2 to JSF 2.0. One of my immediate problems is with partial state saving.

[b]My component works if I set 'javax.faces.PARTIAL_STATE_SAVING' to 'false' in web.xml[/b]. However this applies globally, and besides I don't want to force my users to do that.

Until I get partial state saving support working correctly for my component, [b]can I disable it on a per-component basis[/b]? I note it is enabled by implementing PartialStateHolder, but UIComponentBase already implements this by default?

Can I disable it within my UIComponentBase subclass? Or do I have to extend UIComponent directly and re-implement all that UIComponentBase goodness (support for rendered, facets, etc).

Regards,

Richard.
[Message sent by forum member 'kennardconsulting']

http://forums.java.net/jive/thread.jspa?messageID=471290