tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "Tapestry5HowToUseForms" by CesarLesc
Date Mon, 08 Oct 2007 03:31:15 GMT
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:

The comment on the change is:

  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

View raw message