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

FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds() return immutable when empty

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

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1.0-core
    • 2.1.0-core
    • None
    • None
    • Windows Vista

    Description

      I'm facing an "UnsupportedOperationException" when trying to add a dynamique Id in RendersIds of partialViewContext (FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add("MyCompId").

      As Balus C said : "It appears that FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds() returns Collections#emptySet() when there are no render IDs. This is however immutable! This totally explains the exception you're facing.(...) The javadoc clearly says that the returned collection must be mutable."

      More information here : http://stackoverflow.com/questions/16589553/unsupportedoperationexception-using-ajax-update-or-getrenderids-add

      Clément

      Attachments

        Activity

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

          People

            darkarena Scott O'Bryan
            joeleclems Clément
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment