Re: How to create Ajax request from t:select

2009-08-23 Thread Norman Franke
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

Re[2]: How to create Ajax request from t:select

2009-08-19 Thread Sergey Kashin
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

Re: How to create Ajax request from t:select

2009-08-19 Thread Juan E. Maya
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

How to create Ajax request from t:select

2009-08-19 Thread Sergey Kashin
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");