Re: dynamically change the context information of an EventLink on the cliient side

2011-11-08 Thread bogdan_cm
Thank you both for the reply. Will investigate which method applies better to
my needs. 

Cheers, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4974985.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: dynamically change the context information of an EventLink on the cliient side

2011-11-07 Thread Barry Books
Thiago suggestion will work and the @RequestParamter is useful. You can also use

http://tapestry5-jquery.com/docs/mixins/bind

which supports replacing the context on the client side with zones and events.

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



Re: dynamically change the context information of an EventLink on the cliient side

2011-11-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Nov 2011 20:41:12 -0200, bogdan_cm   
wrote:



Hi All,


Hi!


Tap built in Ajax Support. The problem with this though, is how do I add
what the user entered as text to the context of the link. How to make the
user entered text reach the EventLink's method parameter.


Send the text URL encoded as a request parameter instead of using the  
event context: onEvent(@RequestParameter("queryParameterName") typed) {  
... }. When the data to be posted is defined client-side, query parameters  
are the way to go.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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



dynamically change the context information of an EventLink on the cliient side

2011-11-07 Thread bogdan_cm
Hi All, 
  I would appreciate your help with some ideas as I am trying to implement a
chat component and I want to use Tap for the server page. 

The user will add text to a text input and click a link or hit enter. At
this point I need to send what the user entered to the tapestry class. It
would be ideal if I could use a Zone with an EventLink to take advantage of
Tap built in Ajax Support. The problem with this though, is how do I add
what the user entered as text to the context of the link. How to make the
user entered text reach the EventLink's method parameter. 

Is this more workable than an 100% JQuery client that simply posts requests
to a Tap5 page?

Thanks very much, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4972710.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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