Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
On Thu, Nov 19, 2009 at 1:10 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 20:00:22 -0200, Ilya Obshadko > escreveu: > > > Finally, I've managed to create generic-purpose mixin that can trigger >> form submit on any type of event and on any element within t

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 20:00:22 -0200, Ilya Obshadko escreveu: Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit compon

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit component), supports multiple submit triggers within single form (analogous t

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
On Wed, Nov 18, 2009 at 5:59 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko > escreveu: > > ... anybody? >> > > Thanks! I thought about something similar, but I was hoping that it's possible without such kind of workaround. --

Re: simulate form submission events without Submit component

2009-11-18 Thread Toby Hobson
I do something similar ... in fact I have created a mixin which I call AjaxDelegate ... it basically wires up elements so that a client side event on one component invokes a click event on a hidden submit button Toby 2009/11/18 Thiago H. de Paula Figueiredo > Em Wed, 18 Nov 2009 11:22:03 -0200,

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko escreveu: ... anybody? I would add a non-visible submit button (not the Submit component, an ordinary ) and then invoke submit.click(). That's what worked with AJAX submissions for me. -- Thiago H. de Paula Figueiredo Independent Java,

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
... anybody? On Tue, Nov 17, 2009 at 10:03 PM, Ilya Obshadko wrote: > I have a task that looks quite simple, but still have a problem > accomplishing it. > > Suppose you have a form with Select control, and onChange event on that > control should generate form submission event. > > I've created a