最先是prepare for render 方法是 onPrepareForRender() 或 prepare for submit onPrepareforSubmit()
|
//
onPrepare() called after either prepareforRender or prepareForSubmit (once everytime form is rendered or submitted)
|
//
onValidateForm() for cross-form validation to check for errors
|
//
if there are errors recorded call onFailure() OR call onSuccess if no errors
|
//
onSubmit is called whether onFailure() or onSuccess() is called.