[ https://issues.apache.org/jira/browse/MYFACES-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713834#action_12713834 ]
Leonardo Uribe commented on MYFACES-2237: ----------------------------------------- This is not a bug. The file org.apache.myfaces.application.jsp.JspStateManagerImpl says this: /** * Only applicable if state saving method is "server" (= default). * If <code>true</code> (default) the state will be serialized to a byte stream before it is written to the session. * If <code>false</code> the state will not be serialized to a byte stream. */ private static final String SERIALIZE_STATE_IN_SESSION_PARAM = "org.apache.myfaces.SERIALIZE_STATE_IN_SESSION"; In server side state saving, it is necessary to put a "key" to retrieve the state. That's why HtmlResponseStateManager.writeViewStateField always write "something". You can take a look at JspStateManagerImpl.serializeView(FacesContext context, Object serializedView) to check how this param works. I'll close this issue as invalid. > HtmlResponseStateManager always serialize state on writeViewStateField > ---------------------------------------------------------------------- > > Key: MYFACES-2237 > URL: https://issues.apache.org/jira/browse/MYFACES-2237 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 1.2.6 > Reporter: Hampus Wingren > > Hi, > I'm looking into performance issues regarding CPU consumption in our > faces-portlet app. I'm trying to avoid serialization of the view and state > with the web.xml params org.apache.myfaces.COMPRESS_STATE_IN_SESSION, > org.apache.myfaces.SERIALIZE_STATE_IN_SESSION and > org.apache.myfaces.USE_ENCRYPTION. > These params works fine except for > HtmlResponseStateManager.writeViewStateField which always serializes the > savedState, ignoring the org.apache.myfaces.SERIALIZE_STATE_IN_SESSION param. > Is this intentional or is this a bug? > Regards, > Hampus -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.