From adffaces-commits-return-1822-apmail-incubator-adffaces-commits-archive=incubator.apache.org@incubator.apache.org Mon Jan 29 09:20:28 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-commits-archive@locus.apache.org Received: (qmail 46578 invoked from network); 29 Jan 2007 09:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 09:20:28 -0000 Received: (qmail 76249 invoked by uid 500); 29 Jan 2007 09:20:34 -0000 Delivered-To: apmail-incubator-adffaces-commits-archive@incubator.apache.org Received: (qmail 76236 invoked by uid 500); 29 Jan 2007 09:20:33 -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 76227 invoked by uid 99); 29 Jan 2007 09:20:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 01:20:33 -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; Mon, 29 Jan 2007 01:20:27 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 2C1411A981A; Mon, 29 Jan 2007 01:20:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r500980 - /incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml Date: Mon, 29 Jan 2007 09:20:07 -0000 To: adffaces-commits@incubator.apache.org From: matzew@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070129092007.2C1411A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: matzew Date: Mon Jan 29 01:20:06 2007 New Revision: 500980 URL: http://svn.apache.org/viewvc?view=rev&rev=500980 Log: changed client side converter/validator docu, based on latest checkins to Trinidad Modified: incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml Modified: incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml?view=diff&rev=500980&r1=500979&r2=500980 ============================================================================== --- incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml (original) +++ incubator/adffaces/trunk/trinidad/src/site/xdoc/devguide/clientValidation.xml Mon Jan 29 01:20:06 2007 @@ -47,6 +47,9 @@ * * @param value Model object value to be converted * @param label label to identify the editableValueHolder to the user + * + * @return the value as a string or undefined in case of no converter mechanism is + * available (see TrNumberConverter). */ TrConverter.prototype.getAsString = function(value, label){} @@ -56,6 +59,9 @@ * * @param value String value to be converted * @param label label to identify the editableValueHolder to the user + * + * @return the converted value or undefined in case of no converter mechanism is + * available (see TrNumberConverter). */ TrConverter.prototype.getAsObject = function(value, label){} @@ -307,12 +313,13 @@ /** * Perform the correctness checks implemented by this Validator. - * If any violations are found, a ValidatorException will be thrown - * containing the FacesMessage describing the failure. + * If any violations are found, a TrValidatorException will be thrown + * containing the TrFacesMessage describing the failure. * @param value value to be validated * @param label label to identify the editableValueHolder to the user + * @param converter converter to format error string properly */ -TrValidator.prototype.validate = function(value, label){} +TrValidator.prototype.validate = function(value, label, converter){} The validator can throw javascript TrValidatorException objects: