Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 801E7EA1A for ; Thu, 28 Feb 2013 21:13:14 +0000 (UTC) Received: (qmail 52264 invoked by uid 500); 28 Feb 2013 21:13:14 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 52151 invoked by uid 500); 28 Feb 2013 21:13:14 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 51704 invoked by uid 99); 28 Feb 2013 21:13:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 21:13:13 +0000 Date: Thu, 28 Feb 2013 21:13:13 +0000 (UTC) From: "Max Starets (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (TRINIDAD-2369) Mojarra 2.1.18 partial state saving incompatibility when moving a facet MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Max Starets created TRINIDAD-2369: ------------------------------------- Summary: Mojarra 2.1.18 partial state saving incompatibility when moving a facet Key: TRINIDAD-2369 URL: https://issues.apache.org/jira/browse/TRINIDAD-2369 Project: MyFaces Trinidad Issue Type: Bug Environment: Mojarra 2.1.18 Reporter: Max Starets To reproduce the issue, create a test application doing the following during invoke_application: 1) Move a component to be a facet of some other component: newParent.getFacets().put("center", component1); 2) Move the component to its original parent: originalParent.getChildren().add(component1); Note that the following exception will be thrown by Mojarra: javax.faces.FacesException: Cannot add the same component twice: o1 at com.sun.faces.context.StateContext$AddRemoveListener.handleAddRemoveWithAutoPrune(StateContext.java:528) at com.sun.faces.context.StateContext$AddRemoveListener.handleAdd(StateContext.java:437) at com.sun.faces.context.StateContext$AddRemoveListener.processEvent(StateContext.java:359) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106) at com.sun.faces.application.ApplicationImpl.processListenersAccountingForAdds(ApplicationImpl.java:2210) at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:2031) at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:292) at org.apache.myfaces.trinidad.component.UIXComponentBase._publishPostAddToViewEvent(UIXComponentBase.java:1597) at org.apache.myfaces.trinidad.component.UIXComponentBase.setParent(UIXComponentBase.java:701) at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayList.java:66) at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayList.java:73) at org.apache.myfaces.trinidad.component.ChildArrayList.add(ChildArrayList.java:36) -- 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