You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2006/08/21 14:07:46 UTC
EngineServices + Links question
Hello there! I need to use asynchronous invocations on my page, XTile
wouldn't do it, because of the complexity of the XML that I need to
return. So I was thinking in create my own service.
I have two situations, a javascript timer that will poll the server in
a regular basis, and a onclick event that will post modifications
(Yes, it is a chat based app). I already have the whole thing
implemented with jsp-servlets, just porting it :P
I'm just confused on how do I create the urls for my pages? let's say:
public void onMessageSend(IRequestCycle cycle){
//Get parameters, assemble an message and store it on messageQueue
}
public void onMessageRequest(IRequestCycle cycle){
//getMessages from queue and store them on the cycle
}
public class ChatService implements IEngineService{
public void service(IRequestCycle cycle){
//convert the object on the cycle into XML, change the response
header and flush it :P
}
}
So, my questions are:
1st: How to build the urls (they are gonna be on a javascript)
2nd: Where to store the values on the cycle? cycle.setParameters?
Best Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org