Package name.matthewgreet.strutscommons.action
package name.matthewgreet.strutscommons.action
Template classes and supporting interfaces for Struts 2 Actions.
-
ClassDescriptionBase class of Struts 2 Action that supports server state per browser tab.AbstractFindBaseRecordListActionSupport<M extends Serializable,
T extends Serializable, F extends AbstractForm> Template Struts 2 Action for creating Strategies that load an instance ofListCache
, usually from a form.Configures list to be loaded by Struts, finder action and whether empty lists means search parameters must be rejected.AbstractFindBaseRecordListActionSupport.FindBaseRecordListResponse<M extends Serializable,T extends Serializable> AbstractFindIdListActionSupport<M extends Serializable,K extends Serializable, F extends AbstractForm> Template class for creating Command objects that load an id list in theListCache
used by the target, viewer action.Configures list to be loaded by Struts, finder action and whether empty lists means search parameters must be rejected.AbstractFindIndexListActionSupport<M extends Serializable,T extends Serializable, F extends AbstractForm> Template class for creating Command objects that load an index-based list in theListCache
used by the target, viewer action.Configures list to be loaded by Struts, finder action and whether empty lists means search parameters must be rejected.AbstractFindIndexListActionSupport.FindIndexListResponse<M extends Serializable,T extends Serializable> Template class for creating Command objects that load a list cache in theAbstractCompositeCache
.Configures list to be loaded by Struts, finder action and whether empty lists means search parameters must be rejected.AbstractFindListMultiModeActionSupport<M extends Serializable,K extends Serializable, T extends Serializable, F extends Form> Template class for creating Command objects that load a list cache in theAbstractCompositeCache
by various pagination modes, whether full list, page by id, or page by index.Configures list to be loaded by Struts, finder action and whether empty lists means search parameters must be rejected.AbstractFindListMultiModeActionSupport.FindListMultiModeResponse<M extends Serializable,K extends Serializable, T extends Serializable> AbstractFormDrivenActionSupport<F extends Form>Base class of Struts 2 Action for finding or updating based on form data, or otherwise respond to POST requests.Template class of Struts 2 action for serving Json data of generic type T, usually for JQuery-based pages using jQuery.getJSON.AbstractSaveListActionSupport<M extends Serializable,K extends Serializable, T extends Serializable, F extends AbstractForm> Template class for changing business data related to the currently, selected item.Configures list that is updated by save action.Forwarding and cache updating response set by concrete subclass.ADD_AND_RELOAD_ITEMAdds item to list and reloads item for all required data. ADD_ITEMAdds item to list, which must have all expected data. DESELECTSets the list selection to no item. NONEDoes not affect list. RELOAD_ENTIREReloads master list, which means all slave lists are cleared for reload. RELOAD_ITEMReloads selected item of list only. RELOAD_LISTReloads list using current list finder. RELOAD_MASTERReloads selected item of master list, which means all slave lists are cleared for reload. REMOVE_ITEMRemoves selected item of list.Template class for Struts 2 actions that display something.AbstractViewListActionSupport<M extends Serializable,K extends Serializable, T extends Serializable, FT> Struts 2 Template class for displaying and controlling list data on a JSP from an instance ofListCache
, which, if it's a slave list, is linked to a master list.Configures list to be loaded by viewer action.Deprecated.An old design that can't handle session copying.Interface for Struts 2 actions that accept a browser tab id.LikeHttpSession
, stores sets of named data or attribute about a user between requests but data are private to each browser tab, so different pages of the same browser don't clash when using the same name.Implementation ofBrowserTabSession
.FormDriven<T extends Form>Interface indicating Struts 2 action accepts form data into a form object and describes how the form should be handled in workflow.