You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gc...@apache.org on 2012/03/23 19:05:35 UTC

svn commit: r1304531 - /myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java

Author: gcrawford
Date: Fri Mar 23 18:05:35 2012
New Revision: 1304531

URL: http://svn.apache.org/viewvc?rev=1304531&view=rev
Log:
TRINIDAD-2213 DateFormatInfoScriptlet not getting 2 digit year start from same place as DateTimeConverter, using different values.

Modified:
    myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java

Modified: myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java?rev=1304531&r1=1304530&r2=1304531&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java (original)
+++ myfaces/trinidad/branches/1.2.12.7.0-branch/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/jsLibs/DateFormatInfoScriptlet.java Fri Mar 23 18:05:35 2012
@@ -23,6 +23,7 @@ import java.io.IOException;
 import javax.faces.context.FacesContext;
 import javax.faces.context.ResponseWriter;
 
+import org.apache.myfaces.trinidad.context.RequestContext;
 import org.apache.myfaces.trinidad.context.RenderingContext;
 import org.apache.myfaces.trinidad.util.IntegerUtils;
 
@@ -59,8 +60,7 @@ class DateFormatInfoScriptlet extends Sc
     ResponseWriter writer = context.getResponseWriter();
 
     writer.writeText("var _df2DYS=", null);
-    int twoDigitYearStart =
-      arc.getLocaleContext().getTwoDigitYearStart();
+    int twoDigitYearStart = RequestContext.getCurrentInstance().getTwoDigitYearStart();
     writer.writeText(IntegerUtils.getString(twoDigitYearStart), null);
     writer.writeText(";", null);
   }