|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.handler.forms.validation.DummyValidator
public class DummyValidator
Returns the validator code and validator message that are passed to it.
| Variable | Type | Mode | Default | Description |
|---|---|---|---|---|
| validatorcode | Parameter | Required | - | The code that will be returned. |
| validatormessage | Parameter | Optional | "" | The message that will be returned. |
| Constructor Summary | |
|---|---|
DummyValidator()
|
|
| Method Summary | |
|---|---|
void |
init(FormComponentConfig config)
Passes the initialization parameters to the component. |
ValidatorMessage[] |
validate(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Performs validation on a form and returns an array of validator messages, containing errors detected in the submitted values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyValidator()
| Method Detail |
|---|
public ValidatorMessage[] validate(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Validator
validate in interface Validatorform - The form that should be validatedformState - The object representing the state of the formflow.
This object provides access to values submitted by the client and
the exceptions and validator messages for the form.req - The http servlet requestres - The http servlet response
public void init(FormComponentConfig config)
throws InitializationException
FormComponent
init in interface FormComponentconfig - The FormComponentConfig object that contains
configutation information for this component.
InitializationException - If initialization failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||