In addition to the other posters ... Tapestry follows the DRY (Don't Repeat Yourself) coding principle: the label is defined in only one place but used in multiple places. Of course you should put the label text in a .properties file for l10n.
The behaviour you are seeing for default label names is described here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html Cheers, Nick. Mohammad Shamsi wrote:
hi, Label component in T5, just have a parameter named "for". Tapestry use this value with some changes as a label text. this value also used for validation messages. but : 1 - for example my textfield component id is "item.firstName". then it's label is : item.first Name :( not good label 2 - in multi language pages, labels most change to selected language. if Label component have an optional parameter for its value, then developers has no problem in these cases.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]