public abstract class ErrorProcessingFormAction<X,K> extends FormAction
FormAction
that provides custom handling of a form that fails to validate.
This behaviour only applies in the web-context where form submission and validation are seperate.Constructor and Description |
---|
ErrorProcessingFormAction() |
Modifier and Type | Method and Description |
---|---|
FormResult |
processError(AppContext conn,
Form f,
TransitionFactory<K,X> provider,
X target,
K key,
java.util.Collection<java.lang.String> missing,
java.util.Map<java.lang.String,java.lang.String> errors)
Process a form that failed to validate.
|
action, getConfirm, getConfirmMessage, getHelp, getMustValidate, getShortcut, getText, setConfirm, setConfirmArgs, setMustValidate, setNewWindow, wantNewWindow
public FormResult processError(AppContext conn, Form f, TransitionFactory<K,X> provider, X target, K key, java.util.Collection<java.lang.String> missing, java.util.Map<java.lang.String,java.lang.String> errors)
ErrorFormResult
.conn
- AppContext
f
- Form
target
- missing
- required fields with no valueerrors
- map of field names to validation errors.FormResult