Simply add this code to your page's constructor:
add(new PageView("componentTree", this));
<span wicket:id="componentTree"/>
61626364656667686970
} catch (NullPointerException e) { // Ignore } add(new PageView("page", (Page)page)); add(new Image("bug", new PackageResourceReference(InspectorPage.class, "bug.png"))); add(new BookmarkablePageLink<Void>("allsessions", LiveSessionsPage.class)); add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion())); }
9899100101102103104105106107108
private static final long serialVersionUID = 1L; @Override public void onClick() { ExceptionErrorPage.this.replace(new PageView("componentTree", page)); setVisible(false); } }); add(new Label("componentTree", ""));
54555657585960616263
} catch (StringValueConversionException e) { // Ignore } add(new PageView("page", entry == null ? null : entry.getPage())); add(new Image<Void>("bug")); add(new BookmarkablePageLink("allsessions", LiveSessionsPage.class)); add(new Label<String>("wicketVersion", getApplication().getFrameworkSettings().getVersion())); }
9596979899100101102103104105
private static final long serialVersionUID = 1L; @Override public void onClick() { ExceptionErrorPage.this.replace(new PageView("componentTree", page)); setVisible(false); } }); add(new Label<String>("componentTree", ""));
} catch (NullPointerException e) { // Ignore } add(new PageView("page", entry == null ? null : entry.getPage())); add(new Image("bug", new ResourceReference(InspectorPage.class, "bug.png"))); add(new BookmarkablePageLink<Void>("allsessions", LiveSessionsPage.class)); add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion())); }