Skip to main content

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

1 reply [Last post]
kennardconsulting
Offline
Joined: 2005-10-25
Points: 0

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.

My component works if I set 'javax.faces.PARTIAL_STATE_SAVING' to 'false' in web.xml. 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, can I disable it on a per-component basis? 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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kennardconsulting
Offline
Joined: 2005-10-25
Points: 0

For those that come this way after me...

It appears the answer is [b]no[/b]. See https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1313.

You can disable partial state saving globally (javax.faces.PARTIAL_STATE_SAVING) and per-view (javax.faces.FULL_STATE_SAVING_VIEW_IDS) but not per-component.

Richard.