If you use the submit component, it will fire a selected event. By handling that, you can detect which button was clicked and act accordingly.

HTH,

Uli

Am 26.11.2009 23:12 schrieb CarmenG:
I have a page with a form, nested within the form is a custom component with
a select box and a submit button. When the submit button is clicked I want
to download either a PDF or Excel file based on the value of the select box.

I know the event for the submit button cannot return a value and I don't
know how the page's onSuccess event can notify the custom component to
download the file, or if it should be done another way.
I'm new to Tapestry 5 but have used Tapestry 4 and previously 3 for many
years.

thanks,
Carmen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to