You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2012/01/30 12:54:41 UTC
[3/3] git commit: Remove some code from early days of 1.5 development
Remove some code from early days of 1.5 development
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/00e2d2f3
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/00e2d2f3
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/00e2d2f3
Branch: refs/heads/master
Commit: 00e2d2f356f3173a42192edf3a7b891fbc1f876a
Parents: 1485a85
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jan 30 12:51:22 2012 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jan 30 12:51:22 2012 +0200
----------------------------------------------------------------------
.../src/disabled/java/ng/NGApplication.java | 48 -----
.../src/disabled/java/ng/TestPage1.java | 146 ---------------
.../src/disabled/java/ng/TestPage2.java | 28 ---
.../src/disabled/java/ng/TestPage3.java | 45 -----
.../src/disabled/java/ng/TestPage4.java | 42 ----
5 files changed, 0 insertions(+), 309 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/00e2d2f3/wicket-examples/src/disabled/java/ng/NGApplication.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/disabled/java/ng/NGApplication.java b/wicket-examples/src/disabled/java/ng/NGApplication.java
deleted file mode 100644
index 5088901..0000000
--- a/wicket-examples/src/disabled/java/ng/NGApplication.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.examples.ng;
-
-import org.apache.wicket.ng.markup.html.link.ILinkListener;
-import org.apache.wicket.ng.protocol.http.WebApplication;
-import org.apache.wicket.ng.request.component.RequestablePage;
-import org.apache.wicket.ng.request.listener.RequestListenerInterface;
-import org.apache.wicket.ng.request.mapper.MountedMapper;
-
-public class NGApplication extends WebApplication
-{
- public NGApplication()
- {
- super();
- }
-
- @Override
- public void init()
- {
- mount(new MountedMapper("first-test-page", TestPage1.class));
- mount(new MountedMapper("third-test-page", TestPage3.class));
- mount(new MountedMapper("/page4/${color}/display", TestPage4.class));
-
- // load the interface
- RequestListenerInterface i = ILinkListener.INTERFACE;
- }
-
- @Override
- public Class<? extends RequestablePage> getHomePage()
- {
- return TestPage1.class;
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/00e2d2f3/wicket-examples/src/disabled/java/ng/TestPage1.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/disabled/java/ng/TestPage1.java b/wicket-examples/src/disabled/java/ng/TestPage1.java
deleted file mode 100644
index 677ff7d..0000000
--- a/wicket-examples/src/disabled/java/ng/TestPage1.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.examples.ng;
-
-
-import org.apache.wicket.Page;
-import org.apache.wicket.ng.markup.html.link.Link;
-import org.apache.wicket.ng.request.component.PageParametersNg;
-import org.apache.wicket.ng.request.cycle.RequestCycle;
-
-public class TestPage1 extends Page
-{
- private static final long serialVersionUID = 1L;
-
- public TestPage1()
- {
- Link l1 = new Link("l1")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- System.out.println("link 1 clicked");
- getPageParametersNg().setNamedParameter("p1", "v1");
- getPageParametersNg().setIndexedParameter(0, "indexed1");
- getPageParametersNg().setIndexedParameter(1, "indexed2");
- getPageParametersNg().setIndexedParameter(2, "indexed3");
-
- // necessary on stateless page
- if (getPage().isPageStateless())
- RequestCycle.get().setResponsePage(getPage());
- }
- };
- l1.setBookmarkable(isPageStateless());
- l1.setLabel("Link 1 - Add Some Parameters");
- add(l1);
-
- Link l2 = new Link("l2")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- System.out.println("link 2 clicked");
- getPageParametersNg().removeNamedParameter("p1");
- getPageParametersNg().clearIndexedParameters();
-
- if (getPage().isPageStateless())
- // necessary on stateless page
- RequestCycle.get().setResponsePage(getPage());
- }
- };
- l2.setLabel("Link 2 - Remove The Parameters (this link is bookmarkable listener interface!)");
- l2.setBookmarkable(true);
- add(l2);
-
-
- Link l3 = new Link("l3")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- System.out.println("link 3 clicked");
- RequestCycle.get().setResponsePage(new TestPage2());
- }
- };
- // l3.setBookmarkable(true);
- l3.setLabel("Link 3 - Go to Test Page 2 - Not mounted, Not bookmarkable");
- add(l3);
-
-
- Link l4 = new Link("l4")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- System.out.println("link 4 clicked");
- RequestCycle.get().setResponsePage(TestPage2.class, null);
- }
- };
- l4.setLabel("Link 4 - Go to Test Page 2 - Not mounted, Bookmarkable");
- add(l4);
-
-
- Link l5 = new Link("l5")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- System.out.println("link 5 clicked");
- TestPage3 page = new TestPage3(TestPage1.this);
- page.getPageParametersNg().setIndexedParameter(0, "i1");
- page.getPageParametersNg().setIndexedParameter(1, "i2");
- page.getPageParametersNg().setIndexedParameter(2, "i3");
- RequestCycle.get().setResponsePage(page);
- }
- };
- l5.setLabel("Link 5 - Go to Test Page 3 - Mounted");
- add(l5);
-
- Link l6 = new Link("l6")
- {
- public void onLinkClicked()
- {
- PageParametersNg params = new PageParametersNg();
- params.setNamedParameter("color", "red");
- RequestCycle.get().setResponsePage(TestPage4.class, params);
- }
- };
- l6.setLabel("Link 6 - Goto Test Page 4 - stateless, with mounted parameters");
- add(l6);
- }
-
- private boolean rendered = false;
-
- @Override
- public void renderPage()
- {
- super.renderPage();
- rendered = true;
- }
-
- @Override
- public boolean isPageStateless()
- {
- return false;
-// return !rendered;
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/00e2d2f3/wicket-examples/src/disabled/java/ng/TestPage2.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/disabled/java/ng/TestPage2.java b/wicket-examples/src/disabled/java/ng/TestPage2.java
deleted file mode 100644
index 4506ca9..0000000
--- a/wicket-examples/src/disabled/java/ng/TestPage2.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.examples.ng;
-
-import org.apache.wicket.ng.Page;
-
-public class TestPage2 extends Page
-{
- private static final long serialVersionUID = 1L;
-
- public TestPage2()
- {
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/00e2d2f3/wicket-examples/src/disabled/java/ng/TestPage3.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/disabled/java/ng/TestPage3.java b/wicket-examples/src/disabled/java/ng/TestPage3.java
deleted file mode 100644
index 4c8a8fa..0000000
--- a/wicket-examples/src/disabled/java/ng/TestPage3.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.examples.ng;
-
-import org.apache.wicket.ng.Page;
-import org.apache.wicket.ng.markup.html.form.Form;
-import org.apache.wicket.ng.markup.html.link.Link;
-import org.apache.wicket.ng.request.cycle.RequestCycle;
-
-public class TestPage3 extends Page
-{
- private static final long serialVersionUID = 1L;
-
- public TestPage3(final Page back)
- {
- Link b = new Link("back")
- {
- private static final long serialVersionUID = 1L;
-
- public void onLinkClicked()
- {
- RequestCycle.get().setResponsePage(back);
- }
- };
- b.setLabel("Go Back");
- add(b);
-
- Form form = new Form("form");
- add(form);
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/00e2d2f3/wicket-examples/src/disabled/java/ng/TestPage4.java
----------------------------------------------------------------------
diff --git a/wicket-examples/src/disabled/java/ng/TestPage4.java b/wicket-examples/src/disabled/java/ng/TestPage4.java
deleted file mode 100644
index 2bb5bc7..0000000
--- a/wicket-examples/src/disabled/java/ng/TestPage4.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.examples.ng;
-
-import org.apache.wicket.ng.Page;
-import org.apache.wicket.ng.markup.html.Label;
-import org.apache.wicket.ng.request.component.PageParametersNg;
-
-public class TestPage4 extends Page
-{
- private static final long serialVersionUID = 1L;
-
- public TestPage4(PageParametersNg parameters)
- {
- super(parameters);
-
- add(new Label("label", parameters.getNamedParameter("color").toString("empty")));
- }
-
- /**
- * @see org.apache.wicket.ng.Page#isPageStateless()
- */
- @Override
- public boolean isPageStateless()
- {
- return true;
- }
-}