myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r616107 - in /myfaces/commons/trunk: myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties
Date Mon, 28 Jan 2008 23:48:24 GMT
Author: lu4242
Date: Mon Jan 28 15:48:19 2008
New Revision: 616107

URL: http://svn.apache.org/viewvc?rev=616107&view=rev
Log:
Validator Messages are not working, corrected MessageUtils to point to Messages.properties
and corrected names

Modified:
    myfaces/commons/trunk/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java
    myfaces/commons/trunk/myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties

Modified: myfaces/commons/trunk/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java?rev=616107&r1=616106&r2=616107&view=diff
==============================================================================
--- myfaces/commons/trunk/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java
(original)
+++ myfaces/commons/trunk/myfaces-commons-utils/src/main/java/org/apache/myfaces/commons/util/MessageUtils.java
Mon Jan 28 15:48:19 2008
@@ -56,8 +56,8 @@
 		// nope
 	}
 
-    /** Default bundle for messages (<code>javax.faces.Messages</code>) */
-    private static final String DEFAULT_BUNDLE = "javax.faces.Messages";
+    /** Default bundle for messages (<code>org.apache.myfaces.commons.Messages</code>)
*/ 
+    private static final String DEFAULT_BUNDLE = "org.apache.myfaces.commons.Messages";//javax.faces.Messages
 
     /** Suffix for message details (<code>_detail</code>)*/
     private static final String DETAIL_SUFFIX = "_detail";

Modified: myfaces/commons/trunk/myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties?rev=616107&r1=616106&r2=616107&view=diff
==============================================================================
--- myfaces/commons/trunk/myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties
(original)
+++ myfaces/commons/trunk/myfaces-commons-validators/src/main/resources/org/apache/myfaces/commons/Messages.properties
Mon Jan 28 15:48:19 2008
@@ -12,17 +12,17 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-org.apache.myfaces.Email.INVALID=Validation Error
-org.apache.myfaces.Email.INVALID_detail=The given value ({0}) is not a correct email-address.
-org.apache.myfaces.Equal.INVALID=Validation Error
-org.apache.myfaces.Equal.INVALID_detail=The given value ({0}) is not equal with value of
"{1}".
-org.apache.myfaces.Creditcard.INVALID=Validation Error
-org.apache.myfaces.Creditcard.INVALID_detail=The given value ({0}) is not a correct creditcard
-org.apache.myfaces.Regexpr.INVALID=Validation Error
-org.apache.myfaces.Regexpr.INVALID_detail=The given value ({0}) is not valid.
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.DAY=Date is not allowed.
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.DAY_detail=The date you entered
is not allowed.
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.MONTH=Invalid Month
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.MONTH_detail=Enter a date
from the following month(s): {0}.
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.WEEKDAY=Invalid Weekday
-org.apache.myfaces.trinidad.validator.DateRestrictionValidator.WEEKDAY_detail=Enter a date
from the following weekday(s): {0}.
\ No newline at end of file
+org.apache.myfaces.commons.validator.Email.INVALID=Validation Error
+org.apache.myfaces.commons.validator.Email.INVALID_detail=The given value ({0}) is not a
correct email-address.
+org.apache.myfaces.commons.validator.Equal.INVALID=Validation Error
+org.apache.myfaces.commons.validator.Equal.INVALID_detail=The given value ({0}) is not equal
with value of "{1}".
+org.apache.myfaces.commons.validator.Creditcard.INVALID=Validation Error
+org.apache.myfaces.commons.validator.Creditcard.INVALID_detail=The given value ({0}) is not
a correct creditcard
+org.apache.myfaces.commons.validator.Regexpr.INVALID=Validation Error
+org.apache.myfaces.commons.validator.Regexpr.INVALID_detail=The given value ({0}) is not
valid.
+org.apache.myfaces.commons.validator.DateRestrictionValidator.DAY=Date is not allowed.
+org.apache.myfaces.commons.validator.DateRestrictionValidator.DAY_detail=The date you entered
is not allowed.
+org.apache.myfaces.commons.validator.DateRestrictionValidator.MONTH=Invalid Month
+org.apache.myfaces.commons.validator.DateRestrictionValidator.MONTH_detail=Enter a date from
the following month(s): {0}.
+org.apache.myfaces.commons.validator.DateRestrictionValidator.WEEKDAY=Invalid Weekday
+org.apache.myfaces.commons.validator.DateRestrictionValidator.WEEKDAY_detail=Enter a date
from the following weekday(s): {0}.
\ No newline at end of file



Mime
View raw message