summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Martin <paul@paulsputer.com>2016-03-26 15:05:51 +0000
committerPaul Martin <paul@paulsputer.com>2016-03-26 15:40:04 +0000
commit932e93f555b0740a449350db6125ad52a4b395c8 (patch)
tree104a595bc5e87bb3057b2f5b65d82acc9e92bb49 /src
parent252dc07d7f85cc344b5919bb7c6166ef84b2102e (diff)
downloadgitblit-932e93f555b0740a449350db6125ad52a4b395c8.tar.gz
gitblit-932e93f555b0740a449350db6125ad52a4b395c8.zip
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();
}