diff options
author | Paul Martin <paul@paulsputer.com> | 2016-03-27 16:46:26 +0100 |
---|---|---|
committer | Paul Martin <paul@paulsputer.com> | 2016-03-27 16:46:26 +0100 |
commit | 86401c3ff40c137a937a3dd83f12022fce5529b4 (patch) | |
tree | 18657465a2d1346e9daca935c62e9b1d7f0653a1 | |
parent | caa660d97f95e4da66c9f7722267145ffe8e6d48 (diff) | |
parent | 932e93f555b0740a449350db6125ad52a4b395c8 (diff) | |
download | gitblit-86401c3ff40c137a937a3dd83f12022fce5529b4.tar.gz gitblit-86401c3ff40c137a937a3dd83f12022fce5529b4.zip |
Merge pull request #1032 from gitblit/1031-FixForRepositoryPage
Fix for #1031 to display error message
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/RepositoryPage.java | 12 |
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();
}
|