AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Hello all, i think i've asked similar questions some time ago, but receive no answers. And since i've done no progress on this myself, i'd like to ask: - any ideas how to implement checkbox which onClick auto-submits entire form via ajax, and on server side it rolls ordinary tapestry 5 form

Re: AjaxCheckbox component

2010-10-19 Thread ael
.nabble.com/AjaxCheckbox-component-tp3218716p3218738.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
:8080/jumpstart/ http://lombok.demon.co.uk/tapestry5Demo/ http://lombok.demon.co.uk/tapestry5Demo/ Good Luck :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxCheckbox-component-tp3218716p3218738.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: AjaxCheckbox component

2010-10-19 Thread Sven Homburg
/tapestry5Demo/ http://lombok.demon.co.uk/tapestry5Demo/ Good Luck :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxCheckbox-component-tp3218716p3218738.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: AjaxCheckbox component

2010-10-19 Thread ael
I mean the link that i posted are components therefore they are the same as checkbox... -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxCheckbox-component-tp3218716p3218786.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
while submitting form. On Tue, Oct 19, 2010 at 2:10 PM, ael alan-lua...@dash.com.ph wrote: I mean the link that i posted are components therefore they are the same as checkbox... -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxCheckbox-component-tp3218716p3218786.html

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
On Tue, 19 Oct 2010 08:24:46 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: yeah, i've tried this but, the checkbox in-browser state is NOT set until Zone returned from from handler. Make your click handling code set the checkbox immediately then submit the form. Most probably

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Thiago, is not. Here is the mechanics i debug using fire-bug: 1. checkbox in-browser (which means visible to user) set immediately. 2. usual Tapestry form submission JS loop is started 3. linkZone : function(element, zoneId, url) { . //until this browser shows modified version of

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
Hi, Dmitriy! Isn't this the natural delay between a request, its processing and the reception of the response? In this case, it's not Tapestry itself, it's using AJAX. On Tue, 19 Oct 2010 09:24:23 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Thiago, is not. Here is the

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Is it what AJAX stands for? :) i was thinking that ajax is to do things in background, while letting user see something immediately. And i don't think checkbox falls to area where it should get response from server to display new state, isn't it? anyway you can try it yourself and see that it is

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
On Tue, 19 Oct 2010 14:10:00 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Is it what AJAX stands for? :) Yes! :) i was thinking that ajax is to do things in background, while letting user see something immediately. And i don't think checkbox falls to area where it should

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Here you go. JS + Java. Let me know if you find something in, which can cause such behavior :) JS Tapestry.AjaxCheckbox = Class.create({ initialize: function(formId, clientId, selectAllMode, radioMode) { this.selectAllMode=selectAllMode;

Re: AjaxCheckbox component

2010-10-19 Thread Andreas Andreou
what happens if you omit Event.stop(event); in you onClick function ? On Tue, Oct 19, 2010 at 21:10, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Here you go. JS + Java.   Let me know if you find something in, which can cause such behavior :) JS

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
i can't see any visual difference if i remove Event.stop(..). I grad idea for code from some Tapestry standard component, may be LinkSubmit or so. And i think it behave pretty standard. On the other hand i've noticed that when i use it in 'select-all' mode, where one checkbox sets all others