myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r635105 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
Date Sat, 08 Mar 2008 22:53:08 GMT
Author: lu4242
Date: Sat Mar  8 14:53:01 2008
New Revision: 635105

URL: http://svn.apache.org/viewvc?rev=635105&view=rev
Log:
fix TOMAHAWK-1210 this.stdDateFormatter javascript is null

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js?rev=635105&r1=635104&r2=635105&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
(original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/popcalendar.js
Sat Mar  8 14:53:01 2008
@@ -1465,6 +1465,10 @@
         this.myFacesCtlType = "x:inputDate";
         this.myFacesInputDateClientId = clientId;
         this.dateFormat = format;
+        
+        //Init stdDateFormatter
+        this.stdDateFormatter = new org_apache_myfaces_dateformat_SimpleDateFormatter(
+            this.dateFormat, this.dateFormatSymbols, this.initData.startAt);
 
         this.selectedDate.date = document.getElementById(clientId + ".day").value != "" ?
parseInt(this._formatInt(document.getElementById(clientId + ".day").value), 10) : this.dateNow;
         this.selectedDate.month = document.getElementById(clientId + ".month").value != "-1"
? parseInt(this._formatInt(document.getElementById(clientId + ".month").value), 10) - 1 :
this.monthNow;



Mime
View raw message