Changeset 5576
- Timestamp:
- 08/20/14 09:39:14 (10 years ago)
- Location:
- VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.html
r5575 r5576 26 26 <span class="icon-bar"></span> 27 27 </button> 28 <a class="navbar-brand" href="/"><header>Virtual Collection Registry</header></a>28 <a class="navbar-brand" wicket:id="homelink"><header>Virtual Collection Registry</header></a> 29 29 </div> 30 30 -
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.java
r5506 r5576 8 8 import org.apache.wicket.WicketRuntimeException; 9 9 import org.apache.wicket.markup.html.WebPage; 10 import org.apache.wicket.markup.html.link.BookmarkablePageLink; 10 11 import org.apache.wicket.markup.html.panel.FeedbackPanel; 11 12 import org.apache.wicket.model.IModel; … … 17 18 @SpringBean 18 19 private AdminUsersService adminUsersService; 19 20 20 21 protected BasePage(IModel<?> model) { 21 22 super(model); … … 40 41 41 42 add(new FeedbackPanel("feedback")); 43 44 add(new BookmarkablePageLink("homelink", getApplication().getHomePage()) 45 .setAutoEnable(false)); 42 46 } 43 47 44 48 protected BasePage() { 45 49 this(null); 46 50 } 47 51 48 52 @Override 49 53 protected void onBeforeRender() { 50 54 // skip lazy auto-auth for login page 51 55 if (!this.getClass().isInstance(LoginPage.class)) { 52 final HttpServletRequest request =53 getWebRequestCycle().getWebRequest().getHttpServletRequest();54 final ApplicationSession session =55 (ApplicationSession) getSession();56 final HttpServletRequest request 57 = getWebRequestCycle().getWebRequest().getHttpServletRequest(); 58 final ApplicationSession session 59 = (ApplicationSession) getSession(); 56 60 if (!session.isSignedIn()) { 57 61 if (request.getAuthType() != null) { … … 78 82 super.onBeforeRender(); 79 83 } 80 84 81 85 protected Principal getUser() { 82 86 ApplicationSession session = (ApplicationSession) getSession(); … … 98 102 } 99 103 100 101 102 104 } // class BasePage
Note: See TracChangeset
for help on using the changeset viewer.