incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r503597 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Date Mon, 05 Feb 2007 09:07:41 GMT
Author: matzew
Date: Mon Feb  5 01:07:40 2007
New Revision: 503597

URL: http://svn.apache.org/viewvc?view=rev&rev=503597
Log:
ensure that no 1970 date (meaning null as date value) will be used.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js?view=diff&rev=503597&r1=503596&r2=503597
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Mon Feb  5 01:07:40 2007
@@ -635,10 +635,17 @@
   converter
   )
 {
+	var max = null;
+	var min = null;
+	if(this._maxValue)
+    max = converter.getAsString(new Date(this._maxValue));
+	if(this._minValue)
+    min = converter.getAsString(new Date(this._minValue));
+
   return _returnRangeHints(
     this._messages,
-    converter.getAsString(new Date(this._maxValue)),
-    converter.getAsString(new Date(this._minValue)),
+    max,
+    min,
     "org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MAXIMUM_HINT",
     "org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.MINIMUM_HINT",
     "org.apache.myfaces.trinidad.validator.DateTimeRangeValidator.RANGE_HINT",



Mime
View raw message