http://jakarta.apache.org/tapestry/UsersGuide/validation.html
"The message is either a literal string, or may be prefixed with a '%' character, to indicate a localized key, resolved using the component's message catalog."
Am 11.01.2006 um 17:35 schrieb Ron Piterman:
validators="validators:required[%key-of-resource]"/> Cheers, ROn Christian Mittendorf wrote:Hello! I've got a question regarding the use of messages from property files inside a form field validator. My TextField does look like this: <input type="text" jwcid="@TextField" value="ognl:foo" displayName="FooField" validators="validators:required[Please fill in a {0}.]"/> The message that is shown in case of an error is inside the bracket: [Please fill in {0}.]How would I localize this message and put the text into a property file? I've tried to use something like the following, but it didn't work as Ihad wished: [message:error1] with a properties file error=Please fill in {0}. On my web page the error message "message:error1" was shown... Thanks in advance, Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: tapestry-user- [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PGP.sig
Description: Signierter Teil der Nachricht
