|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CustomConstraint
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, showCustomError(org.zkoss.zk.ui.Component, org.zkoss.zk.ui.WrongValueException) is called.
Note: if this interface is implemented,
ClientConstraint is ignored, since all validation will be done
at the server.
Constraint,
ClientConstraint| Method Summary | |
|---|---|
void |
showCustomError(org.zkoss.zk.ui.Component comp,
org.zkoss.zk.ui.WrongValueException ex)
To display the error message in a custom way. |
| Method Detail |
|---|
void showCustomError(org.zkoss.zk.ui.Component comp,
org.zkoss.zk.ui.WrongValueException ex)
comp - the component causing the error.ex - the error to display, or null to clear
the error message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||