Marcus
Localisation is done as per the rest of the app. So for me I have:
ExceedsAvailable=Exceeds available quantity ({0}) in ApplicationResources.properties
and
ExceedsAvailable=Quantita` disponibile superata ({0}) in
ApplicationResources_it.properties
The dynamic message would be something like:
errors.add(amount,new ActionError(ExceedsAvailable,
new Integer(productinfo.getAvailableToOrder())
));
there's a whole set of add methods to accomodate different numbers of parameters.
Regards
Quentin
-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 13:52
To: [EMAIL PROTECTED]
Subject: dynamic local message / dynamic error codes
Somewhere along the way I've read that you can display dynamic localized
messages,
by using adding brakets {} to your message and to add a parameter to
this message in your action.
Unfortunately I forgot where I found this.
Can anyone explain to me how to create dynamic localized messages - for
example adding specific error codes ?
thx,
marcus
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]