@OnSubmit

This annotation is defined on the Presentation Layer.

Target: Method of a POJO annotated with @StageDefinition.

Description: Marks a method to be executed when a given form is submitted.

JavaDoc: Click here

Attributes:

Name Description Data type Required Default value
value The name of the form to link to the method. String Yes -

Example:

public class LoginStage {

    // Ties the method to the OnSubmit event of the "myform" form.
    @OnSubmit("myform")
    public void aMethod() {
        ...
    }
}

See also:

Back to annotation reference