You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/09/23 03:50:47 UTC

svn commit: r817923 - /wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java

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

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

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

Modified: wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?rev=817923&r1=817922&r2=817923&view=diff
==============================================================================
--- wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java (original)
+++ wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java Wed Sep 23 01:50:47 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";
 
 	/**