On Mon, 30 Aug 2010 09:38:26 -0300, Jens Reufsteck <jens.reufst...@staufenbiel.de> wrote:

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.

You could use a Hidden field for that. Just set its value before submitting.

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.

The Submit component triggers the "selected" event. "submit" is triggered by Form.

--
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