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 7907510422 for ; Mon, 14 Apr 2014 16:27:04 +0000 (UTC) Received: (qmail 36070 invoked by uid 500); 14 Apr 2014 16:23:39 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 33689 invoked by uid 500); 14 Apr 2014 16:21:54 -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 28708 invoked by uid 99); 14 Apr 2014 16:18:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2014 16:18:15 +0000 Date: Mon, 14 Apr 2014 16:18:15 +0000 (UTC) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MYFACES-3883) c:forEach with PSS enabled fails when added rows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Leonardo Uribe created MYFACES-3883: --------------------------------------- Summary: c:forEach with PSS enabled fails when added rows Key: MYFACES-3883 URL: https://issues.apache.org/jira/browse/MYFACES-3883 Project: MyFaces Core Issue Type: Bug Reporter: Volker Weber Assignee: Leonardo Uribe It has been reported that c:forEach tag with PSS enabled doesn't work well, but if PSS is disabled it works again. This problem has been known for a long time, but it was considered a flaw in c:forEach tag, and there are know fixes for it: 1. Set javax.faces.PARTIAL_STATE_SAVING to false. or 2. Add the page in javax.faces.FULL_STATE_SAVING_VIEW_IDS (disable PSS on the related page only). or 3. Set org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE to true. In JSF 2.2 we fixed that tag from root, but it seems possible to add a small workaround over the state saving algorithm to fix at least the duplicate id exception. It is not perfect, but it seems enough in some cases, and the tag will look "less broken". The idea is detect the duplicate when the component is added to the tree and remove the invalid component and replace it with the restored one. -- This message was sent by Atlassian JIRA (v6.2#6252)