On Tue, Aug 5, 2008 at 18:59, Josh Canfield <[EMAIL PROTECTED]> wrote: > I looked around a bit for a solution once and ended up just sticking the > offset into a hidden form field.
Dear Josh, this in fact is working and seems to be a quite simple solution compared to other possibilties I was thinking of (JSON-Object for example). Thanks a lot for this hint! If anyone is interested in the details: I used the hidden field from t5components: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Hidden.html inside the form like this: <hidden t:id="tzOffset" name="tzOffset" t:type="t5components/Hidden" value="tzOffset"/> And added some javascript to the site: void setupRender() { renderSupport.addScript("document.myFormName.tzOffset.value = new Date().getTimezoneOffset();"); } Make sure to add attribute name="myFormName" to the <form>-element in your html. The timeZone-Offset will then be transmitted using the usual setter-method upon submission of the form. This could be used for transmitting any data retrieved by javascript from the client to the server unless there is no direct support in T5 for this. Regards, Peer. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]