You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Marcus <mv...@gmail.com> on 2007/07/02 14:15:01 UTC
T5 How to Override the default banner message (Errors component)
Hi,
Is there any way to override the banner message displayed above the errors?
(<t:errors/> component)
The default value is "You must correct the following errors before you may
continue.".
I have tried in Application Message Catalog (WEB-INF/app.properties), but
:-(
default-banner=Other Message
Thanks in advance,
Marcus
Re: T5 How to Override the default banner message (Errors
component)
Posted by Ulrich Stärk <ul...@spielviel.de>.
AFAICS that would be:
Errors.properties:
default-banner=You must correct the following errors before you may continue.
ValidationMessages.properties:
required=You must provide a value for %s.
minimum-string-length=You must provide at least %d characters for %s.
maximum-string-length=You may provide at most %d characters for %s.
min-integer=%2$s requires a value of at least %1$d.
max-integer=%2$s requires a value no larger than %1$d.
integer-format-exception=The input value '%s' is not parseable as an
integer value.
number-format-exception=The input value '%s' is not parseable as a numeric
value.
icon-label=[Error]
Just have a look at the tapestry jarfile. You might also be interested in
the German translation of the two I did and attached.
Cheers,
Uli
On Di, 3.07.2007, 09:31, Erik Vullings sagte:
> Thanks Uli and Marcus, that will be useful in the near future!
>
> BTW, what are the labels that can be overruled: default-banner and ...?
>
> I will add them to the Tapestry Wiki
> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
>
> Cheers
> Erik
>
> On 7/3/07, Marcus <mv...@gmail.com> wrote:
>> Hi Uli,
>> org/apache/tapestry/corelib/components/Errors.properties
>> org/apache/tapestry/internal/ValidationMessages.properties
>> :-)
>> Thank you!
>> Marcus
>
Re: T5 How to Override the default banner message (Errors component)
Posted by Marcus <mv...@gmail.com>.
Hi Uli,
org/apache/tapestry/corelib/components/Errors.properties
org/apache/tapestry/internal/ValidationMessages.properties
:-)
Thank you!
Marcus
Re: T5 How to Override the default banner message (Errors component)
Posted by Ulrich Stärk <ul...@spielviel.de>.
Create a directory org/apache/tapestry/corelib/components/ in your
source directory and place an Errors.properties file there. If you also
want to override the default validation messages place a
ValidationMessages.properties file in org/apache/tapestry/corelib/internal/.
Uli
Marcus schrieb:
> Hi,
>
> Is there any way to override the banner message displayed above the errors?
> (<t:errors/> component)
> The default value is "You must correct the following errors before you may
> continue.".
> I have tried in Application Message Catalog (WEB-INF/app.properties), but
> :-(
> default-banner=Other Message
>
> Thanks in advance,
>
> Marcus
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org