From 932e93f555b0740a449350db6125ad52a4b395c8 Mon Sep 17 00:00:00 2001 From: Paul Martin Date: Sat, 26 Mar 2016 15:05:51 +0000 Subject: [PATCH] Fix for #1031 to display error message --- .../com/gitblit/wicket/pages/RepositoryPage.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java index 7e164a8c..8958eb2a 100644 --- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java @@ -662,6 +662,15 @@ public abstract class RepositoryPage extends RootPage { } } + @Override + protected void onInitialize() { + + super.onInitialize(); + + // setup page header and footer + setupPage(getRepositoryName(), "/ " + getPageName()); + } + @Override protected void onBeforeRender() { // dispose of repository object @@ -669,8 +678,7 @@ public abstract class RepositoryPage extends RootPage { r.close(); r = null; } - // setup page header and footer - setupPage(getRepositoryName(), "/ " + getPageName()); + super.onBeforeRender(); } -- 2.39.5