Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by NickWestgate: http://wiki.apache.org/tapestry/Tapestry5HowToUseForms ------------------------------------------------------------------------------ ==== Dealing with multiple submits ==== - If you want to have two or more submits on a form with different actions (e.g. different pages to invoke) you have to do thw following: + If you want to have two or more submits on a form with different actions (e.g. different pages to invoke) you can do the following: (But you also might want to have a look at the example submit component that includes a context ["Tapestry5SubmitContextComponent"]) 1. add the two submit buttons to the form {{{ @Component @@ -76, +76 @@ } }}} - All this has to be done because the Submit cannot add a context to the form and the "select" events must not return any objects (just void). The idea for this solution is from HLS (see [http://mail-archives.apache.org/mod_mbox/tapestry-users/200703.mbox/[EMAIL PROTECTED] HLS on mailing-list about multiple submits]) + All this has to be done because the Submit cannot add a context to the form (though ["Tapestry5SubmitContextComponent"] can) and the "select" events must not return any objects (just void). The idea for this solution is from HLS (see [http://mail-archives.apache.org/mod_mbox/tapestry-users/200703.mbox/[EMAIL PROTECTED] HLS on mailing-list about multiple submits]) ==== Forms and Names ==== If you don't specify a name for the form, tapestry will generate a form whose name is the same as the id. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
