Em Thu, 12 Nov 2009 11:12:45 -0200, Joachim Van der Auwera <joac...@progs.be> escreveu:

I have component which does some javascript manipulation on a form field value which contains a double. Depending on the locale, this may use either a dot or a comma as decimal separator. Is there a way in which I can know client side (in the javascript code) what the current decimal separator is?

As far as I know, there isn't, as you can't access request headers from JavaScript. You could get the locale server-side and generate a JavaScript line that sets a variable with the information you need. You can do that by injecting RenderSupport and invoking its addScript() method.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to