From dev-return-20073-apmail-tapestry-dev-archive=tapestry.apache.org@tapestry.apache.org Mon Oct 08 03:31:48 2007 Return-Path: Delivered-To: apmail-tapestry-dev-archive@www.apache.org Received: (qmail 3505 invoked from network); 8 Oct 2007 03:31:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2007 03:31:48 -0000 Received: (qmail 99494 invoked by uid 500); 8 Oct 2007 03:31:32 -0000 Delivered-To: apmail-tapestry-dev-archive@tapestry.apache.org Received: (qmail 99478 invoked by uid 500); 8 Oct 2007 03:31:32 -0000 Mailing-List: contact dev-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry development" Delivered-To: mailing list dev@tapestry.apache.org Received: (qmail 99469 invoked by uid 99); 8 Oct 2007 03:31:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 20:31:32 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 03:31:36 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id D1E875A1CF for ; Mon, 8 Oct 2007 03:31:15 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: dev@tapestry.apache.org Date: Mon, 08 Oct 2007 03:31:15 -0000 Message-ID: <20071008033115.1804.57665@eos.apache.org> Subject: [Tapestry Wiki] Update of "Tapestry5HowToUseForms" by CesarLesc X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification. The following page has been changed by CesarLesc: http://wiki.apache.org/tapestry/Tapestry5HowToUseForms The comment on the change is: i18n ------------------------------------------------------------------------------ All this has to be done because the Submit cannot add a context to the form (though ["Tapestry5SubmitContextComponent"] can) and the "selected" events must not return any objects (just void). The idea for this solution is from HLS (see [http://mail-archives.apache.org/mod_mbox/tapestry-users/200703.mbox/%3cecd0e3310703190722q23611acdm805975dc08cd9532@mail.gmail.com%3e HLS on mailing-list about multiple submits]) + ==== Forms and Messages Resources (Internationalization) ==== + You can customize the field's label and validation messages used in a form, providing the followings entries in the properties file for the page. + {{{ + id-label=some label + }}} + where id is the id of some field (this does not override the label property of the field). + {{{ + id-validator-message=validation message + }}} + where id is the id of some field and validator is the type of validator. + + Examples + {{{ + name-label=The Name + name-required-message=The Name is required. + age-min-message=The age must be greater or equal to %d + }}} + ==== Forms and Names ==== If you don't specify a name for the form, tapestry will generate a form whose name is the same as the id. {{{ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org For additional commands, e-mail: dev-help@tapestry.apache.org