Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2093

processsavestate and processrestorestate not called during partial state saving

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.1-core
    • None
    • Facelets
    • None

    Description

      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); }

      }

      Attachments

        Activity

          People

            gabrielle Gabrielle Crawford
            gabrielle Gabrielle Crawford
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: