A more general purpose way to trigger an AJAX zone update is to include an empty t:form (with style="display:none") and the do $ ('myFormId').submit() from any JavaScript method you'd create that needs to trigger an event. Somewhat of a hack, but I've been using this a lot for many different odd situations.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Aug 19, 2009, at 4:46 AM, Juan E. Maya wrote:

This has been asked several times in the last weeks.
U can use chenillikit's onEvent mixin:
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html
or do something like: http://tinybits.blogspot.com/

2009/8/19 Sergey Kashin <ayr...@ngs.ru>:
Hello!

In tapestry 4.1 I can create ajax request from select component a very
simple way:

@EventListener(elements = "city", events = "onchange", submitForm = "form", validateForm = false)
public void citySelected(IRequestCycle cycle) {
 .....
 cycle.getResponseBuilder().updateComponent("zip");
}


How to make that in tap 5.1?




--
Best regards,
 Sergey


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