Author: ehillenius
Date: Sun Nov 19 14:49:05 2006
New Revision: 476966
URL: http://svn.apache.org/viewvc?view=rev&rev=476966
Log:
fixes for button change and some fixes for deprecation warnings
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/builtin/AjaxApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/prototype/PrototypeApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/breadcrumb/SecondPanel.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ButtonPage.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ComponentReferenceApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/SubmitLinkPage.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.html
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInputApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/library/LibraryApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/nested/NestedApplication.java
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/upload/UploadApplication.java
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/builtin/AjaxApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/builtin/AjaxApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/builtin/AjaxApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/builtin/AjaxApplication.java
Sun Nov 19 14:49:05 2006
@@ -37,9 +37,9 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
getRequestCycleSettings().addResponseFilter(new
AjaxServerAndClientTimeFilter());
- getAjaxSettings().setAjaxDebugModeEnabled(true);
+ getDebugSettings().setAjaxDebugModeEnabled(true);
}
/**
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/prototype/PrototypeApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/prototype/PrototypeApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/prototype/PrototypeApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/ajax/prototype/PrototypeApplication.java
Sun Nov 19 14:49:05 2006
@@ -19,7 +19,6 @@
import wicket.examples.WicketExampleApplication;
import wicket.markup.html.AjaxServerAndClientTimeFilter;
-import wicket.markup.html.ServerAndClientTimeFilter;
/**
* Application object for the Prototype.js ajax demo page.
@@ -40,7 +39,7 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
getRequestCycleSettings().addResponseFilter(new
AjaxServerAndClientTimeFilter());
}
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/breadcrumb/SecondPanel.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/breadcrumb/SecondPanel.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/breadcrumb/SecondPanel.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/breadcrumb/SecondPanel.java
Sun Nov 19 14:49:05 2006
@@ -55,7 +55,7 @@
add(new Button("nextButton")
{
- protected void onSubmit()
+ public void onSubmit()
{
activate(new IBreadCrumbPanelFactory()
{
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ButtonPage.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ButtonPage.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ButtonPage.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ButtonPage.java
Sun Nov 19 14:49:05 2006
@@ -48,7 +48,7 @@
Button button1 = new Button("button1")
{
- protected void onSubmit()
+ public void onSubmit()
{
info("button1.onSubmit executed");
}
@@ -57,7 +57,7 @@
Button button2 = new Button("button2")
{
- protected void onSubmit()
+ public void onSubmit()
{
info("button2.onSubmit executed");
}
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ComponentReferenceApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ComponentReferenceApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ComponentReferenceApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/ComponentReferenceApplication.java
Sun Nov 19 14:49:05 2006
@@ -58,7 +58,7 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
}
/**
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/SubmitLinkPage.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/SubmitLinkPage.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/SubmitLinkPage.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/compref/SubmitLinkPage.java
Sun Nov 19 14:49:05 2006
@@ -43,7 +43,7 @@
SubmitLink internal = new SubmitLink("internal")
{
- protected void onSubmit()
+ public void onSubmit()
{
info("internal onsubmit");
};
@@ -52,7 +52,7 @@
SubmitLink external = new SubmitLink("external", form)
{
- protected void onSubmit()
+ public void onSubmit()
{
info("external onsubmit");
};
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.html
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.html?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.html
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.html
Sun Nov 19 14:49:05 2006
@@ -30,6 +30,7 @@
<ul>
<li wicket:id="lines">
<input type="text" wicket:id="lineEdit" />
+ <a wicket:id="remove">Remove</a>
</li>
</ul>
<label for="booleanProperty">Boolean</label>
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
Sun Nov 19 14:49:05 2006
@@ -321,6 +321,7 @@
// objects of
// type FormInputModel.Line) using property text.
item.add(new TextField("lineEdit", new
PropertyModel(item.getModel(), "text")));
+ item.add(removeLink("remove", item));
}
}
-}
\ No newline at end of file
+}
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInputApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInputApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInputApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/forminput/FormInputApplication.java
Sun Nov 19 14:49:05 2006
@@ -52,7 +52,7 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
// Chinese buttons
Font font = new Font("SimSun", Font.BOLD, 16);
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/library/LibraryApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/library/LibraryApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/library/LibraryApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/library/LibraryApplication.java
Sun Nov 19 14:49:05 2006
@@ -44,7 +44,7 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.REDIRECT_TO_RENDER);
// Install a simple page authorization strategy, that checks
all pages
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/nested/NestedApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/nested/NestedApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/nested/NestedApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/nested/NestedApplication.java
Sun Nov 19 14:49:05 2006
@@ -40,7 +40,7 @@
{
super.init();
// disable debugging mode, because it slows down the tree
- getAjaxSettings().setAjaxDebugModeEnabled(false);
+ getDebugSettings().setAjaxDebugModeEnabled(false);
}
/**
Modified:
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/upload/UploadApplication.java
URL:
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/upload/UploadApplication.java?view=diff&rev=476966&r1=476965&r2=476966
==============================================================================
---
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/upload/UploadApplication.java
(original)
+++
incubator/wicket/branches/wicket-1.x/wicket-examples/src/main/java/wicket/examples/upload/UploadApplication.java
Sun Nov 19 14:49:05 2006
@@ -42,7 +42,7 @@
*/
protected void init()
{
-
getExceptionSettings().setThrowExceptionOnMissingResource(false);
+ getResourceSettings().setThrowExceptionOnMissingResource(false);
}