You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Clément (JIRA)" <de...@myfaces.apache.org> on 2013/05/17 15:45:16 UTC
[jira] [Created] (TRINIDAD-2387)
FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds()
return immutable when empty
Clément created TRINIDAD-2387:
---------------------------------
Summary: 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
Priority: Blocker
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira