I'm not sure what you mean, the asynchronous portion should happen automatically.
It should also behave exactly the same way as your listener method would if it were say a @Submit component listener or @DirectLink listener. The major difference is that it automatically submits your form if you happen to be targeting a component that implements IFormComponent. (which most form based Tapestry components do) http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html On 5/27/07, Janos Mucsi <[EMAIL PROTECTED]> wrote:
Hi I am new to Tapestry, so excuse my basic question. I am reading http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html and was wondering how @EventListener implements asynchronous calls. Does anybody have a sample that behaves like the example: @EventListener(events = "selectOption", targets = "projectChoose", submitForm = "taskForm", async=true) public void projectSelected(IRequestCycle cycle) { cycle.getResponseBuilder().updateComponent("projectDescription"); cycle.getResponseBuilder().updateComponent("feedbackBlock"); } Thanks! -- Janos Mucsi
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com