| org.zkoss.zul.CustomConstraint
CustomConstraint | public interface CustomConstraint (Code) | | Additional interface implemented with
Constraint to denote
a constraint supports a custom way to display the error message.
If this interface is implemented, the default error box won't be
displayed. Rather,
CustomConstraint.showCustomError is called.
Note: if this interface is implemented,
ClientConstraint is ignored, since all validation will be done
at the server.
author: tomyeh See Also: Constraint See Also: ClientConstraint |
showCustomError | public void showCustomError(Component comp, WrongValueException ex)(Code) | | To display the error message in a custom way.
Note: this method is called either with a error or not, depending
on whether ex is null.
Parameters: comp - the component causing the error. Parameters: ex - the error to display, or null to clearthe error message. |
|
|