Class EmptyFormBean
- java.lang.Object
-
- net.anotheria.anosite.handler.validation.AbstractFormBean
-
- net.anotheria.anosite.handler.validation.EmptyFormBean
-
- All Implemented Interfaces:
Serializable
public final class EmptyFormBean extends AbstractFormBean
Clean form bean. Used in handlers where we don't need form bean and submit.- Author:
- Alexandr Bolbat
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.anotheria.anosite.handler.validation.AbstractFormBean
EMPTY_BOOLEAN, EMPTY_LIST, EMPTY_NUMBER, EMPTY_SET, EMPTY_STRING
-
-
Constructor Summary
Constructors Constructor Description EmptyFormBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetFieldValue(String fieldName)Get form field value by form field name.protected voidprepare(jakarta.servlet.http.HttpServletRequest req)Any bean extended from this abstract class must have possibility to initialize by self from request.-
Methods inherited from class net.anotheria.anosite.handler.validation.AbstractFormBean
getFieldsNames, readField, readField, saveField
-
-
-
-
Method Detail
-
getFieldValue
public final Object getFieldValue(String fieldName)
Description copied from class:AbstractFormBeanGet form field value by form field name. By default it use internal storage.- Overrides:
getFieldValuein classAbstractFormBean- Parameters:
fieldName- - form field name- Returns:
Object
-
prepare
protected final void prepare(jakarta.servlet.http.HttpServletRequest req)
Description copied from class:AbstractFormBeanAny bean extended from this abstract class must have possibility to initialize by self from request.- Specified by:
preparein classAbstractFormBean- Parameters:
req- request
-
-