WICKET-4593 reverted changes which lead to ITab#getPanel() created multiple times
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/1aef8389 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/1aef8389 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/1aef8389 Branch: refs/heads/sandbox/resourcefinder Commit: 1aef8389ebbab52b8f8eb0503bd23d5fcd17d5f5 Parents: f4fca19 Author: svenmeier <svenme...@apache.org> Authored: Thu Jun 28 19:05:20 2012 +0200 Committer: svenmeier <svenme...@apache.org> Committed: Thu Jun 28 19:05:20 2012 +0200 ---------------------------------------------------------------------- .../wicket/examples/compref/TabbedPanelPage.html | 3 --- .../wicket/examples/compref/TabbedPanelPage.java | 13 ------------- 2 files changed, 0 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/1aef8389/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.html ---------------------------------------------------------------------- diff --git a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.html b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.html index b28afb5..76a57f4 100644 --- a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.html +++ b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.html @@ -20,9 +20,6 @@ <p> <div wicket:id="tabs" class="tabpanel">[tabbed panel will be here]</div> </p> - <p> - <a wicket:id="skip">Skip to the next tab via model change.</a> - </p> <span wicket:id="explainPanel">panel contents come here</span> </body> </html> http://git-wip-us.apache.org/repos/asf/wicket/blob/1aef8389/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.java ---------------------------------------------------------------------- diff --git a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.java b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.java index 0e0c030..23111d7 100644 --- a/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.java +++ b/wicket-examples/src/main/java/org/apache/wicket/examples/compref/TabbedPanelPage.java @@ -94,19 +94,6 @@ public class TabbedPanelPage extends WicketExamplePage final TabbedPanel<ITab> tabbedPanel = new TabbedPanel<ITab>("tabs", tabs); tabbedPanel.add(AttributeModifier.replace("class", TabbedPanelPage.this.getDefaultModel())); add(tabbedPanel); - - add(new Link<Void>("skip") - { - private static final long serialVersionUID = 1L; - - @Override - public void onClick() - { - int index = tabbedPanel.getModelObject(); - - tabbedPanel.setModelObject((index + 1) % tabs.size()); - } - }); } private void addCssSwitchingLinks()