Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
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