Thanks - but then, how do I know, which element actually triggered the submit? 
I need to react differently to a click on the submit button and to a submit 
coming from clicks on a listbox. 

I can only capture events with a general onSubmit handler. A onSubmitFromButton 
doesn't work, whilst onSelectedFromButton works. I observed this behaviour only 
for Ajax requests. For normal requests the onSubmitFromButton works.

Again, the onSelectedFromButton works only for submits coming from input 
buttons.

Anything, I'm doing wrong?

-- 
Jens Reufsteck
Marketing & Online Director

Staufenbiel Institut GmbH
Events & Recruiting Solutions

Wildunger Straße 6, 60487 Frankfurt am Main
www.staufenbiel.de www.mba-master.de www.absolventenkongress.de

Tel.:  +49 (0)69 25537-140
Fax:   +49 (0)69 25537-2140

Geschäftsführer: Judith Oppitz, Birgit Giesen, Graham Storey, Martin Halliday
Amtsgericht Köln HRB 9301

Internet communications are not secure and therefore Staufenbiel Institut GmbH 
does not accept legal responsibility
for the contents of this message. Any views or opinions presented are solely 
those of the author and do not
necessarily represent those of Staufenbiel Institut GmbH unless otherwise 
specifically stated.

> -----Original Message-----
> From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
> Sent: Monday, August 30, 2010 1:48 PM
> To: Tapestry users
> Subject: Re: Ajax Change event with T5.1.0.5
> 
> On Mon, 30 Aug 2010 08:32:49 -0300, Jens Reufsteck
> <jens.reufst...@staufenbiel.de> wrote:
> 
> > I’m trying to update a zone triggered by a change event in a listbox.
> > I’ve seen the recent posting re the zoneUpdater mixin, but need to post
> > the whole form rather than picking individual parameters.
> 
> Use $(formId).fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);, where formId is
> the client id of your form. That's exactly how Tapestry itself does AJAX
> form submissions.
> 
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to