What's the closest equivalent of T4's EventListener in T5? You can do
ActionLink with zone and @OnEvent on the server, but what I loved about T4's
EventListener was that you could hook an arbitrary Javascript call to a
server side operation with one annotation. I have a case where I'd like to
do communicate in the background from plain Javascript rather than "click a
link".

Kalle


On Tue, Aug 5, 2008 at 3:30 PM, Toby Hobson <toby.hob...@googlemail.com>wrote:

> Does anyone know if something similar is available (or planned) for T5?
>
> Toby
>
> 2008/8/5 Thiago Henrique de Carvalho <kalis...@gmail.com>
>
> > Hi,
> >
> > Take a look at @EventListener annotation. Docs show example of
> transmiting
> > JSON from page to Tapestry.
> >
> > Thiago
> >
> > -----Mensagem original-----
> > De: Peer Brink [mailto:peerbr...@gmail.com]
> > Enviada em: terça-feira, 5 de agosto de 2008 06:41
> > Para: users@tapestry.apache.org
> > Assunto: Transmitting a javascript-value to the server using JSON
> >
> > Hello,
> >
> > I try to transmit the users/browsers timezone-offset to the server.
> > The timeZone-offset can easily be retrieved by
> >
> > <script type="text/javascript">
> > var offset = new Date().getTimezoneOffset();
> > </script>
> >
> > But how can it be transmitted? Could this be done using a JSONObject
> > by adding "Object.toJSON(offset);"?
> >
> > I found quite some conversations in the mailing-list about
> > JSON-communication but they are all about transmitting data in the
> > other direction (server to client).
> >
> > Where would the code go in the html-source and what java-code is
> > needed to receive the value on the server-side?
> >
> > Or is there a complete other way to get this value?
> >
> > Sorry for this rookie-question. But I am not too familiar with
> > java-script and JSON.
> >
> > Thanks for any help,
> > Peer.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>

Reply via email to