processsavestate and processrestorestate not called during partial state saving
-------------------------------------------------------------------------------

                 Key: TRINIDAD-2093
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2093
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Facelets
    Affects Versions: 2.0.1
            Reporter: Gabrielle Crawford
            Assignee: Gabrielle Crawford


In partial state saving processSaveState is not called on components, instead 
it just calls saveState. 

Move the following code in 
org.apache.myfaces.trinidad.component.UIXComponentBase.processSaveState to 
saveState so that it's called during partial state saving.

// if component state serialization checking is on, attempt to Serialize the
// component state immediately in order to determine which component's state
// failed state saving.  Note that since our parent will attempt this same
// serialization, turning this on is expensive and should only be used once
// a serialization error has been detected and we want to know which
// component's state failed
if (StateUtils.checkComponentStateSerialization(context))
{
  try
  {
    new ObjectOutputStream(new ByteArrayOutputStream()).writeObject(state);
  }
  catch (IOException e)
  {
    throw new
RuntimeException(_LOG.getMessage("COMPONENT_SAVED_STATE_FAILED", this), e);
  }
}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to