You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/06/24 20:23:21 UTC
svn commit: r550270 - in
/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput:
FormInput.html FormInput.java
Author: ehillenius
Date: Sun Jun 24 11:23:20 2007
New Revision: 550270
URL: http://svn.apache.org/viewvc?view=rev&rev=550270
Log:
user normal textfield + date picker for dateProperty in forminput
Modified:
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.html
incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
Modified: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.html
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.html?view=diff&rev=550270&r1=550269&r2=550270
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.html (original)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.html Sun Jun 24 11:23:20 2007
@@ -26,7 +26,7 @@
<input wicket:id="doubleProperty" id="doubleProperty" type="text" size="40"/>
<label for="dateProperty"><wicket:message key="date" /></label>
- <span wicket:id="dateProperty" id="dateProperty" />
+ <input type="text" wicket:id="dateProperty" id="dateProperty" />
<label>ListView</label>
<ul>
Modified: incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java?view=diff&rev=550270&r1=550269&r2=550270
==============================================================================
--- incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java (original)
+++ incubator/wicket/trunk/jdk-1.5/wicket-examples/src/main/java/org/apache/wicket/examples/forminput/FormInput.java Sun Jun 24 11:23:20 2007
@@ -19,11 +19,12 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
+import java.util.Date;
import java.util.List;
import java.util.Locale;
import org.apache.wicket.examples.WicketExamplePage;
-import org.apache.wicket.extensions.yui.calendar.DateTimeField;
+import org.apache.wicket.extensions.yui.calendar.DatePicker;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.Check;
@@ -95,12 +96,10 @@
add(integerTextField.add(NumberValidator.POSITIVE));
add(new RequiredTextField("doubleProperty"));
- add(new DateTimeField("dateProperty"));
- // add(DateTextField.forShortStyle("dateProperty").add(new
- // DatePicker()));
+ // add(new DateTimeField("dateProperty"));
+ add(new TextField("dateProperty", Date.class).add(new DatePicker()));
- add(new RequiredTextField("integerInRangeProperty").add(NumberValidator
- .range(0, 100)));
+ add(new RequiredTextField("integerInRangeProperty").add(NumberValidator.range(0, 100)));
add(new CheckBox("booleanProperty"));
add(new Multiply("multiply"));
// display the multiply result