struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Pratt" <thechrispr...@gmail.com>
Subject Re: REPOST: Internationalized messages for pure JavaScript client side validations
Date Sat, 09 Dec 2006 21:40:57 GMT
Seems to me that if it returned a key instead of a message that you could
use <fmt:message key="${message}"/> to retrieve the appropriate
internationalized message cooresponding to the error.
  (*Chris*)

On 12/4/06, Tarek Nabil <Tarek.Nabil@dubaiworld.ae> wrote:
>
>
> -----Original Message-----
> From: Tarek Nabil
> Sent: Wednesday, November 29, 2006 10:17 AM
> To: Struts Users Mailing List
> Subject: Internationalized messages for pure JavaScript client side
> validations
>
> Hi,
>
> I read the following in the documentation
>
> <quote>
> Errors are reported using the default validation message, not the
> internationalized version that the server-side might be aware of. This
> is a known issue. You may want to try the AJAX Client Side Validation
> for messages that are fully internationalized.
> </quote>
>
> Is this feature impossible to implement using the current framework? I
> don't want to go to the server for simple client side validations and
> the internationalized messages are a must for me.
>
> I looked at the code and it seems that this expression is the one that
> yields the message
> ${validator.getMessage(action)?js_string}
>
> I'm not into freemarker but it seems to be calling something on the
> validator object. Is there a way we can enhance the validation object in
> some way so that it exposes the internationalized message or is this
> object not aware of the user's current locale at all? Could it be
> enhanced so that it is aware of it?
>
> Thanks,
> Tarek Nabil
>
> ********************************************DISCLAIMER******************
> **************************
> This email and any files transmitted with it are confidential and
> contain privileged or copyright
> information. If you are not the intended recipient you must not copy,
> distribute or use this email
> or the information contained in it for any purpose other than to notify
> us of the receipt thereof.
> If you have received this message in error, please notify the sender
> immediately, and delete this
> email from your system.
>
> Please note that e-mails are susceptible to change.The sender shall not
> be liable for the improper
> or incomplete transmission of the information contained in this
> communication,nor for any delay in
> its receipt or damage to your system.The sender does not guarantee that
> this material is free from
> viruses or any other defects although due care has been taken to
> minimise the risk.
> ************************************************************************
> **************************
>
> ********************************************DISCLAIMER********************************************
> This email and any files transmitted with it are confidential and contain
> privileged or copyright
> information. If you are not the intended recipient you must not copy,
> distribute or use this email
> or the information contained in it for any purpose other than to notify us
> of the receipt thereof.
> If you have received this message in error, please notify the sender
> immediately, and delete this
> email from your system.
>
> Please note that e-mails are susceptible to change.The sender shall not be
> liable for the improper
> or incomplete transmission of the information contained in this
> communication,nor for any delay in
> its receipt or damage to your system.The sender does not guarantee that
> this material is free from
> viruses or any other defects although due care has been taken to minimise
> the risk.
>
> **************************************************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message