public interface DropletFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
void |
afterGet(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
Called after page rendering has complete for any form handlers
whose beforeGet method was called.
|
boolean |
afterSet(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
Called after all form arguments have been submitted, before the
page is serviced (or rendered).
|
void |
beforeGet(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
Called before any attempts to get values of this bean by valueof
or input tags.
|
boolean |
beforeSet(DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
Called when a form is submitted that references this bean before any set
methods have been called, i.e.
|
void |
handleFormException(DropletFormException exception,
DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
This is called if an exception occurred when getting or setting
the values of the form.
|
void |
handleUncheckedFormException(java.lang.Throwable exception,
DynamoHttpServletRequest request,
DynamoHttpServletResponse response)
This is called if an unchecked exception occurred when getting or setting
the values of the form.
|
static final java.lang.String CLASS_VERSION
boolean beforeSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
If multiple form handlers exist for the same form, they are called in an order based on the priority of the input tag that references the form.
DropletFormException
boolean afterSet(DynamoHttpServletRequest request, DynamoHttpServletResponse response) throws DropletFormException
This method is suitable for doing form submit processing on forms that do not have a submit button (i.e. have only a single text field) or for cleaning up after the form has been submitted.
DropletFormException
void beforeGet(DynamoHttpServletRequest request, DynamoHttpServletResponse response)
void afterGet(DynamoHttpServletRequest request, DynamoHttpServletResponse response)
This method is suitable for releasing any resources obtained during the processing of the request, logging of the operation performed, etc.
void handleFormException(DropletFormException exception, DynamoHttpServletRequest request, DynamoHttpServletResponse response)
void handleUncheckedFormException(java.lang.Throwable exception, DynamoHttpServletRequest request, DynamoHttpServletResponse response)