Author: jjamrich
Date: 2011-09-12 14:37:07 -0400 (Mon, 12 Sep 2011)
New Revision: 22708
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPickListBean.java
Log:
RFPL-1612: add default message for validator
If no validatorMessage set, no validation message displayed at all even there is another
set to FacesContext from validator, since null value set to validatorMessage attribute
override this message. Solution is not to use @validationMessage if don't want to set
value, buit this would bring more problems into Metamer, so decided to use another
solution - default validatorMessage.
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPickListBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPickListBean.java 2011-09-12
14:24:42 UTC (rev 22707)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichPickListBean.java 2011-09-12
18:37:07 UTC (rev 22708)
@@ -83,7 +83,8 @@
attributes.setAttribute("minListHeight", "100");
attributes.setAttribute("requiredMessage", "Not empty target list
is required!");
-
+ attributes.setAttribute("validatorMessage", "We are sorry, but @
is not allowed to join us!");
+
attributes.setAttribute("addText", ">");
attributes.setAttribute("addAllText", ">>");
attributes.setAttribute("removeText", "<");