@Deprecated public abstract class AbstractFormBean extends Object
Constructor and Description |
---|
AbstractFormBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorMessage(String key,
String message)
Deprecated.
add new error message to internal message stack
|
boolean |
errorsOccured()
Deprecated.
|
boolean |
errorsOccured(String key)
Deprecated.
check if there are errors for a certain form field
|
Map<String,String> |
getAllErrorMessages()
Deprecated.
|
String |
getErrorMessage(String key)
Deprecated.
get the error message for a certain form field
|
String |
getFormName()
Deprecated.
|
abstract boolean |
performAction()
Deprecated.
abstract hook for after-validation action
|
void |
setFormName(String formName)
Deprecated.
set the form name of this form on incoming request.
|
abstract boolean |
validate()
Deprecated.
abstract hook for validation logic
|
boolean |
wasSent()
Deprecated.
|
public void addErrorMessage(String key, String message)
key
- the addressed form fieldmessage
- the messagepublic boolean errorsOccured()
public boolean errorsOccured(String key)
key
- the name of the form fieldpublic Map<String,String> getAllErrorMessages()
public String getErrorMessage(String key)
key
- the name of the form fieldpublic String getFormName()
public abstract boolean performAction()
public void setFormName(String formName)
formName
- the name of the formpublic abstract boolean validate()
public boolean wasSent()
Copyright © 2019 Communote team. All rights reserved.