public interface IFieldTracking
For each field, a flag is stored indicating if the field is, in fact, in error. The input
supplied by the client is stored so that if the form is re-rendered (as is typically done when
there are input errors), the value entered by the user can be displayed back to the user. An
error message renderer is stored; this is an object that can render the error message (it is
usually a RenderString
wrapper around a simple string).
Modifier and Type | Method and Description |
---|---|
IFormComponent |
getComponent()
Returns the field component.
|
ValidationConstraint |
getConstraint()
Returns the validation constraint that was violated by the input.
|
IRender |
getErrorRenderer()
Returns an object that will render the error message.
|
java.lang.String |
getFieldName()
Returns the name of the field, that is, the name assigned by the form (this will differ from
the component's id when any kind of looping operation is in effect).
|
java.lang.String |
getInput()
Returns the invalid input recorded for the field.
|
boolean |
isInError()
Returns true if the field is in error (that is, if it has an error message
renderer . |
boolean isInError()
renderer
.IFormComponent getComponent()
IRender getErrorRenderer()
toString()
that does not produce markup, but is a simple message.ValidatorException.ValidatorException(String, IRender, ValidationConstraint)
java.lang.String getInput()
java.lang.String getFieldName()
ValidationConstraint getConstraint()