diff options
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/RepositoryPage.java')
-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();
}
|