Author: jcompagner
Date: Wed Jan  3 02:02:38 2007
New Revision: 492088

URL: http://svn.apache.org/viewvc?view=rev&rev=492088
Log:
compile errors fixes

Modified:
    incubator/wicket/trunk/wicket-threadtest/.classpath
    
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/DetachableContactModel.java
    
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/Home.java

Modified: incubator/wicket/trunk/wicket-threadtest/.classpath
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-threadtest/.classpath?view=diff&rev=492088&r1=492087&r2=492088
==============================================================================
--- incubator/wicket/trunk/wicket-threadtest/.classpath (original)
+++ incubator/wicket/trunk/wicket-threadtest/.classpath Wed Jan  3 02:02:38 2007
@@ -12,7 +12,7 @@
        <classpathentry kind="var" 
path="M2_REPO/rhino/js/1.5R4.1/js-1.5R4.1.jar" 
sourcepath="M2_REPO/rhino/js/1.5R4.1/js-1.5R4.1-sources.jar"/>
        <classpathentry kind="var" 
path="M2_REPO/org/mortbay/jetty/jetty/6.0.1/jetty-6.0.1.jar" 
sourcepath="M2_REPO/org/mortbay/jetty/jetty/6.0.1/jetty-6.0.1-sources.jar"/>
        <classpathentry kind="var" 
path="M2_REPO/org/mortbay/jetty/jetty-util/6.0.1/jetty-util-6.0.1.jar" 
sourcepath="M2_REPO/org/mortbay/jetty/jetty-util/6.0.1/jetty-util-6.0.1-sources.jar"/>
-       <classpathentry kind="var" 
path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" 
sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
+       <classpathentry kind="var" 
path="M2_REPO/org/slf4j/slf4j-api/1.1.0/slf4j-api-1.1.0.jar" 
sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
        <classpathentry kind="var" 
path="M2_REPO/commons-collections/commons-collections/2.1/commons-collections-2.1.jar"
 
sourcepath="M2_REPO/commons-collections/commons-collections/2.1/commons-collections-2.1-sources.jar"/>
        <classpathentry kind="var" 
path="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13.jar" 
sourcepath="M2_REPO/log4j/log4j/1.2.13/log4j-1.2.13-sources.jar"/>
        <classpathentry kind="var" 
path="M2_REPO/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar" 
sourcepath="M2_REPO/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev-sources.jar"/>
@@ -29,5 +29,6 @@
        <classpathentry kind="var" 
path="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar"
 
sourcepath="M2_REPO/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1-sources.jar"/>
        <classpathentry combineaccessrules="false" kind="src" path="/wicket"/>
        <classpathentry combineaccessrules="false" kind="src" 
path="/wicket-extensions"/>
+       <classpathentry kind="var" 
path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" 
sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
        <classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/DetachableContactModel.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/DetachableContactModel.java?view=diff&rev=492088&r1=492087&r2=492088
==============================================================================
--- 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/DetachableContactModel.java
 (original)
+++ 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/DetachableContactModel.java
 Wed Jan  3 02:02:38 2007
@@ -17,7 +17,6 @@
  */
 package wicket.threadtest.apps.app1;
 
-import wicket.markup.repeater.AbstractPageableView;
 import wicket.markup.repeater.IItemReuseStrategy;
 import wicket.markup.repeater.ReuseIfModelsEqualStrategy;
 import wicket.model.AbstractReadOnlyDetachableModel;

Modified: 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/Home.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/Home.java?view=diff&rev=492088&r1=492087&r2=492088
==============================================================================
--- 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/Home.java
 (original)
+++ 
incubator/wicket/trunk/wicket-threadtest/src/main/java/wicket/threadtest/apps/app1/Home.java
 Wed Jan  3 02:02:38 2007
@@ -43,7 +43,6 @@
 import wicket.markup.html.form.Radio;
 import wicket.markup.html.form.RadioChoice;
 import wicket.markup.html.form.RadioGroup;
-import wicket.markup.html.form.RequiredTextField;
 import wicket.markup.html.form.TextField;
 import wicket.markup.html.image.Image;
 import wicket.markup.html.link.Link;
@@ -112,11 +111,9 @@
                                }
                        };
 
-                       RequiredTextField stringTextField = new 
RequiredTextField<String>(this, "stringProperty");
-                       stringTextField.setLabel(new Model<String>("String"));
-                       RequiredTextField integerTextField = new 
RequiredTextField<Integer>(this, "integerProperty", Integer.class);
-                       integerTextField.add(NumberValidator.POSITIVE);
-                       new RequiredTextField<Double>(this, "doubleProperty", 
Double.class);
+                       new TextField<String>(this, 
"stringProperty").setRequired(true).setLabel(new Model<String>("String"));
+                       new TextField<Integer>(this, "integerProperty", 
Integer.class).setRequired(true).add(NumberValidator.POSITIVE);
+                       new TextField<Double>(this, "doubleProperty", 
Double.class).setRequired(true);
                        // we have a component attached to the label here, as 
we want to
                        // synchronize the
                        // id's of the label, textfield and datepicker. Note 
that you can
@@ -125,8 +122,8 @@
                        WebMarkupContainer dateLabel = new 
WebMarkupContainer(this, "dateLabel");
                        TextField datePropertyTextField = new 
TextField<Date>(this, "dateProperty", Date.class);
                        new DatePicker(this, "datePicker", dateLabel, 
datePropertyTextField);
-                       new RequiredTextField<Integer>(this, 
"integerInRangeProperty", Integer.class).add(NumberValidator.range(0,
-                                       100));
+                       new TextField<Integer>(this, "integerInRangeProperty", 
Integer.class).add(NumberValidator.range(0,
+                                       100)).setRequired(true);
                        new CheckBox(this, "booleanProperty");
                        RadioChoice<String> rc = new RadioChoice<String>(this, 
"numberRadioChoice", NUMBERS).setSuffix("");
                        rc.setLabel(new Model<String>("number"));


Reply via email to