From adffaces-commits-return-1258-apmail-incubator-adffaces-commits-archive=incubator.apache.org@incubator.apache.org Tue Nov 07 20:17:55 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-commits-archive@locus.apache.org Received: (qmail 19630 invoked from network); 7 Nov 2006 20:17:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 20:17:55 -0000 Received: (qmail 82837 invoked by uid 500); 7 Nov 2006 20:18:06 -0000 Delivered-To: apmail-incubator-adffaces-commits-archive@incubator.apache.org Received: (qmail 82773 invoked by uid 500); 7 Nov 2006 20:18:06 -0000 Mailing-List: contact adffaces-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-dev@incubator.apache.org Delivered-To: mailing list adffaces-commits@incubator.apache.org Received: (qmail 82764 invoked by uid 99); 7 Nov 2006 20:18:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 12:18:05 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 12:17:54 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 4D5581A9846; Tue, 7 Nov 2006 12:17:27 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r472232 - /incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java Date: Tue, 07 Nov 2006 20:17:27 -0000 To: adffaces-commits@incubator.apache.org From: baranda@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061107201727.4D5581A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: baranda Date: Tue Nov 7 12:17:26 2006 New Revision: 472232 URL: http://svn.apache.org/viewvc?view=rev&rev=472232 Log: Fixed condition to detect stateholder properties, so the correct method is called when saving/restoring its state Modified: incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java Modified: incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java?view=diff&rev=472232&r1=472231&r2=472232 ============================================================================== --- incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java (original) +++ incubator/adffaces/branches/myfaces-1_2-maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/generator/component/MyFacesComponentGenerator.java Tue Nov 7 12:17:26 2006 @@ -177,7 +177,7 @@ PropertyBean property = (PropertyBean) iterator.next(); String varName = property.getFieldPropertyName(); - if (property.isMethodExpression() || property.isMethodBinding()) + if (property.isStateHolder()) { out.println(arrayName+"["+propIndex+"] = saveAttachedState(facesContext, "+varName+");"); } @@ -225,7 +225,7 @@ String propFullClass = property.getPropertyClass(); String propClass = Util.getClassFromFullClass(propFullClass); - if (property.isMethodExpression() || property.isMethodBinding()) + if (property.isStateHolder()) { out.println(varName + " = "+_castIfNecessary(propClass)+"restoreAttachedState(facesContext, " + arrayName + "[" + propIndex + "]);");