Class AbstractFormDrivenActionSupport<F extends AbstractForm>
java.lang.Object
com.opensymphony.xwork2.ActionSupport
name.matthewgreet.strutscommons.action.AbstractActionSupport
name.matthewgreet.strutscommons.action.AbstractFormDrivenActionSupport<F>
- Type Parameters:
F- Form containing request parameters.
- All Implemented Interfaces:
com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.ModelDriven<F>,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable,BrowserTabAware,BrowserTabAware2,FormDriven<F>,org.apache.struts2.action.ServletRequestAware
public abstract class AbstractFormDrivenActionSupport<F extends AbstractForm>
extends AbstractActionSupport
implements FormDriven<F>
Base class of Struts 2 Action for finding or updating based on form data, or otherwise respond to POST requests.
Concrete subclasses are expected to use an interceptor stack like
FormDrivenStack; see
interceptor package.- See Also:
-
Field Summary
Fields inherited from class com.opensymphony.xwork2.ActionSupport
containerFields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the user's request was rejected, such as form data itself is invalid, an update rejected by the back-end or zero query results with zero results not allowed.protected FgetForm()getModel()protected abstract FmakeForm()Returns a new instance of the form.protected voidvoidvalidate()Methods inherited from class name.matthewgreet.strutscommons.action.AbstractActionSupport
getBrowserTabSession, getServletRequest, getTabId, setBrowserTabSession, setTabId, withServletRequestMethods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrorsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface name.matthewgreet.strutscommons.action.BrowserTabAware2
copyAttributesFromOldTabToNewTab, handleAttributeFailures
-
Constructor Details
-
AbstractFormDrivenActionSupport
public AbstractFormDrivenActionSupport()
-
-
Method Details
-
makeForm
Returns a new instance of the form. -
getForm
-
setForm
-
formValidationFailed
public boolean formValidationFailed()Description copied from interface:FormDrivenReturns whether the user's request was rejected, such as form data itself is invalid, an update rejected by the back-end or zero query results with zero results not allowed. This is usually defined as the presence of any error messages.- Specified by:
formValidationFailedin interfaceFormDriven<F extends AbstractForm>
-
getModel
- Specified by:
getModelin interfacecom.opensymphony.xwork2.ModelDriven<F extends AbstractForm>
-
validate
public void validate()- Specified by:
validatein interfacecom.opensymphony.xwork2.Validateable- Overrides:
validatein classcom.opensymphony.xwork2.ActionSupport
-