There are some docs about this here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html
To get the success event from the component named Form, use:
onSuccessFromForm()
To get the submit event from the component named Submit, so use:
onSuccessFromSubmit()
It's good practice to
Oops, that should be:
To get the submit event from the component named Submit, use:
onSubmitFromSubmit()
You can see it's better to give meaningful names to your components.
Cheers,
Nick.
Nick Westgate wrote:
There are some docs about this here:
Hi Nick,
Thanks,
Marcus
Hi,
SomePage.java:
...
public Object onSubmit() { System.out.println(Button1); }
public Object onSuccess() { System.out.println(Button 2); }
...
SomePage.tml:
...
form t:type=form
input type=submit value=Button 1
/form
form t:type=BeanEditForm object=somelist submitLabel=Button 2
/form
...