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

partial state saving and client id caching not wroking together

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.1-core
    • None
    • None

    Description

      In partial state saving when you add a component it calls com.sun.faces.context.StateContext.AddRemoveListener.handleAddEvent(). That method in turn ends up calling getClientId on the added component (in ComponentStruct.absorbComponent). When the view is restored it uses this added client id to look up the saved state in the state map.

      The reason this isn't working is that the added component is returning "outputText2" from getClientId, but the real client id is "pt1:outputText2". The reason this is happening is that UIXComponentBase.setParent is publishing the addToViewEvent before clearing any cached client id.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment