You can find which button has been clicked using onSelectedFromSubmit methods. Eg: <t:form> <input t:type="submit" value="Update" t:id="update" /> <input t:type="submit" value="Cancel" t:id="cancel" /> </t:form>
private boolean cancel; void onSelectedFromUpdate() { cancel = false; } void onSelectedFromCancel() { cancel = true; } void onSuccess() { if (cancel) { } else { } } Ref: http://wiki.apache.org/tapestry/Tapestry5HowToUseForms http://wiki.apache.org/tapestry/Tapestry5HowToUseForms -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-call-a-method-in-java-page-for-button-submit-action-tp5491713p5491870.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org