Author: ivaynberg
Date: Wed Sep 23 01:50:23 2009
New Revision: 817922

URL: http://svn.apache.org/viewvc?rev=817922&view=rev
Log:
WICKET-2456
Issue: WICKET-2456

Modified:
    
wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java

Modified: 
wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?rev=817922&r1=817921&r2=817922&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
 (original)
+++ 
wicket/branches/wicket-1.4.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
 Wed Sep 23 01:50:23 2009
@@ -32,11 +32,8 @@
 /**
  * A TextField that is mapped to a <code>java.util.Date</code> object.
  * 
- * If you provide a <code>SimpleDateFormat</code> pattern, it will both parse 
and validate the text
- * field according to it.
- * 
- * If you don't, it is the same as creating a <code>TextField</code> with
- * <code>java.util.Date</code> as it's type (it will get the pattern from the 
user's locale)
+ * If no date pattern is explicitly specified, the default 
<code>DateFormat.SHORT</code> pattern for
+ * the current locale will be used.
  * 
  * @author Stefan Kanev
  * @author Igor Vaynberg (ivaynberg)
@@ -47,8 +44,6 @@
 
        private static final long serialVersionUID = 1L;
 
-       // XXX i18n: we can probably make this lazy and localize according to
-       // session locale
        private static final String DEFAULT_PATTERN = "MM/dd/yyyy";
 
        /**


Reply via email to