summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Martin <paul@paulsputer.com>2016-03-27 16:46:26 +0100
committerPaul Martin <paul@paulsputer.com>2016-03-27 16:46:26 +0100
commit86401c3ff40c137a937a3dd83f12022fce5529b4 (patch)
tree18657465a2d1346e9daca935c62e9b1d7f0653a1 /src
parentcaa660d97f95e4da66c9f7722267145ffe8e6d48 (diff)
parent932e93f555b0740a449350db6125ad52a4b395c8 (diff)
downloadgitblit-86401c3ff40c137a937a3dd83f12022fce5529b4.tar.gz
gitblit-86401c3ff40c137a937a3dd83f12022fce5529b4.zip
Merge pull request #1032 from gitblit/1031-FixForRepositoryPage
Fix for #1031 to display error message
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/RepositoryPage.java12
1 files 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
@@ -663,14 +663,22 @@ 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
if (r != null) {
r.close();
r = null;
}
- // setup page header and footer
- setupPage(getRepositoryName(), "/ " + getPageName());
+
super.onBeforeRender();
}