public class ResponseTransitionProvider.EditSectionTransition.EditAction extends ErrorProcessingFormAction<ResponseTarget<D,R>,ResponseTransitionKey<D,R>>
Constructor and Description |
---|
EditAction(ResponseTarget<D,R> target) |
Modifier and Type | Method and Description |
---|---|
FormResult |
action(Form f)
Perform the actual action based on the form parameters.
|
java.lang.String |
getHelp()
Return an optional help text for this action that can be presented as a tooltip etc.
|
FormResult |
processError(AppContext conn,
Form f,
TransitionFactory<ResponseTransitionKey<D,R>,ResponseTarget<D,R>> provider,
ResponseTarget<D,R> target,
ResponseTransitionKey<D,R> 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.
|
getConfirm, getConfirmMessage, getMustValidate, getShortcut, getText, setConfirm, setConfirmArgs, setMustValidate, setNewWindow, wantNewWindow
public EditAction(ResponseTarget<D,R> target)
target
- public FormResult action(Form f) throws ActionException
FormAction
TransitionException
to show an error message to the user.
or a ActionException
to produce a generic error message.action
in class FormAction
f
- FormActionException
public FormResult processError(AppContext conn, Form f, TransitionFactory<ResponseTransitionKey<D,R>,ResponseTarget<D,R>> provider, ResponseTarget<D,R> target, ResponseTransitionKey<D,R> key, java.util.Collection<java.lang.String> missing, java.util.Map<java.lang.String,java.lang.String> errors)
ErrorProcessingFormAction
ErrorFormResult
.processError
in class ErrorProcessingFormAction<ResponseTarget<D extends DynamicFormManager.DynamicForm,R extends ResponseManager.Response<D>>,ResponseTransitionKey<D extends DynamicFormManager.DynamicForm,R extends ResponseManager.Response<D>>>
conn
- AppContext
f
- Form
missing
- required fields with no valueerrors
- map of field names to validation errors.FormResult
public java.lang.String getHelp()
FormAction
getHelp
in class FormAction