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
I have saw the solutions but is not the same as
@EventListener
solution from chenillekit.org is not universal, need javascript
programming for every situation and not contain submitForm = "form",
validateForm = false
more universals
http://tinybits.blogspot.com/
with zone update but it much sim
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 :
> Hello!
>
> In tapestry 4
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");