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, wantNewWindowpublic EditAction(ResponseTarget<D,R> target)
target - public FormResult action(Form f) throws ActionException
FormActionTransitionException to show an error message to the user.
or a ActionException to produce a generic error message.action in class FormActionf - FormActionExceptionpublic 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)
ErrorProcessingFormActionErrorFormResult.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 - AppContextf - Formmissing - required fields with no valueerrors - map of field names to validation errors.FormResultpublic java.lang.String getHelp()
FormActiongetHelp in class FormAction