[
https://issues.jboss.org/browse/AS7-5970?page=com.atlassian.jira.plugin.s...
]
RH Bugzilla Integration commented on AS7-5970:
----------------------------------------------
Ken Finnigan <kfinniga(a)redhat.com> made a comment on [bug
877560|https://bugzilla.redhat.com/show_bug.cgi?id=877560]
Following exception is seen when changing skins for the second time immediately after the
first:
Caused by: javax.faces.FacesException: Cannot remove the same component twice:
pbG9dea276d_2dee9e_2d4150_2dad91_2d22255b5a57d2_j_id1:j_idt444
at
com.sun.faces.context.StateContext$AddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:489)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.context.StateContext$AddRemoveListener.handleRemove(StateContext.java:371)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:334)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
[jboss-jsf-api_2.1_spec-2.0.7.Final-redhat-1.jar:2.0.7.Final-redhat-1]
Investigating this problem lead to determining that it was caused by the need for Portlet
Bridge to retain the UIViewRoot from JSF between requests, and the list of ADDED/REMOVED
components being retained between requests, making JSF believe it was removing a component
for the second time when it fact it wasn't.
This has been raised as
http://java.net/jira/browse/JAVASERVERFACES-2609 against the
Mojarra JSF implementation.
There is also a tracker on AS7 jira to have the fix added when it's available:
https://issues.jboss.org/browse/AS7-5970
RichFaces Showcase portlet is unable to switch skins
----------------------------------------------------
Key: AS7-5970
URL:
https://issues.jboss.org/browse/AS7-5970
Project: Application Server 7
Issue Type: Bug
Components: JSF
Affects Versions: 7.1.3.Final (EAP)
Reporter: Ken Finnigan
Assignee: Stan Silvert
The following exception is thrown when the user changes skins for the second time
immediately after changing the skin for the first time:
{noformat}
Caused by: javax.faces.FacesException: Cannot remove the same component twice:
pbG9dea276d_2dee9e_2d4150_2dad91_2d22255b5a57d2_j_id1:j_idt444
at
com.sun.faces.context.StateContext$AddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:489)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.context.StateContext$AddRemoveListener.handleRemove(StateContext.java:371)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at
com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:334)
[jsf-impl-2.1.13-redhat-1.jar:2.1.13-redhat-1]
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
[jboss-jsf-api_2.1_spec-2.0.7.Final-redhat-1.jar:2.0.7.Final-redhat-1]
{noformat}
This error manifests due to the Portlet Bridge needing to retain the UIViewRoot from JSF
between Portlet Requests, which causes the list of component tree actions, ie. adding and
removing, to be retained making JSF think that it's trying to remove a component that
was actually removed in a previous request.
This has been raised as
http://java.net/jira/browse/JAVASERVERFACES-2609, but wanted to
raise this as a tracker so that when that fix is available it can be incorporated.
--
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