[ https://issues.apache.org/jira/browse/TRINIDAD-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott O'Bryan resolved TRINIDAD-2387. ------------------------------------- Resolution: Fixed Fix Version/s: 2.1.0-core r1541984 | sobryan | 2013-11-14 17:22:31 +0000 | 3 lines Changed paths: M /myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/context/PartialViewContextImpl.java TRINIDAD-2387 - FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds() return immutable when empty Made returned map mutable. > FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds() > return immutable when empty > ---------------------------------------------------------------------------------------------------- > > Key: TRINIDAD-2387 > URL: https://issues.apache.org/jira/browse/TRINIDAD-2387 > Project: MyFaces Trinidad > Issue Type: Bug > Affects Versions: 2.1.0-core > Environment: Windows Vista > Reporter: Clément > Assignee: Scott O'Bryan > Priority: Blocker > Fix For: 2.1.0-core > > > 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 -- This message was sent by Atlassian JIRA (v6.1#6144)