Internationalized messages for pure JavaScript client side validations

Tarek Nabil <[email protected]> Thu, 07 Dec 2006 07:22:48 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <17568024.1165497799799.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
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
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52413&messageID=105750#105750

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]