Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 33979 invoked from network); 26 Aug 2008 17:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Aug 2008 17:47:52 -0000 Received: (qmail 58136 invoked by uid 500); 26 Aug 2008 17:47:37 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 58111 invoked by uid 500); 26 Aug 2008 17:47:37 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Delivered-To: moderator for users@myfaces.apache.org Received: (qmail 11749 invoked by uid 99); 22 Aug 2008 09:51:47 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) From: "Marco Grimm" To: Cc: =?iso-8859-1?Q?'Wolfgang_T=F6pfer'?= Subject: [Trinidad] problem with validators (or only DoubleRangeValidator?) after restoreState Date: Fri, 22 Aug 2008 11:50:30 +0200 Organization: DATIS Software GmbH Message-ID: <7594AA8FE7D24F41A0D7DB407547443A@COMPANY.RZSERVICE.Pri> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AckEPINXi4pHeSSHSLSiWfd+sR+OtA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: by amavisd-new at rz-service-mannheim.de X-Virus-Checked: Checked by ClamAV on apache.org Hello altogether, we have a problem with the validators (or only DoubleRangeValidator?) after restoreState. When restoreState is executed, new instances for the validators are created (that is the properties/attributes like "maximum" and "minimum" have the default value. When the following validate() is executed the org.apache.trinidad.validator.DoubleRangeValidator first tries to execute super.validate(), which finishes without an exception, but - here is the bug - does not validate anything, because the properties/attributes are not set. getMaximum() and getMinimum() would return the correct values, because they get the return value from the _facesBean, but the validate()-Method in javax.faces.validator.DoubleRangeValidator does not use getMaximum() but maximum (the private attribute, which is not set). If I might give a fix suggestion, maybe the restoreState(...)-Method in the DoubleRangeValidator should additionally execute super.restoreState(...), then the properties/attributes would be set in the javax.faces.validator.DoubleRangeValidator. If my fix suggestion is completely wrong, please execuse me. Marco Grimm