/** * Returns the pageMap. * * @return pageMap */ public final IPageMap getPageMap() { return PageMap.forName(pageMapName); }
/** * Returns the pageMap. * * @return pageMap */ public final IPageMap getPageMap() { return PageMap.forName(pageMapName); }
/** * @return Returns the PageMap that this Page is stored in. */ public final IPageMap getPageMap() { // If the transient needs to be restored if (pageMap == null) { // Look the page map up in the session pageMap = PageMap.forName(pageMapName); } return pageMap; }
/** * Returns the pageMap. * * @return pageMap */ public final IPageMap getPageMap() { return PageMap.forName(pageMapName); } }
/** * Returns the pageMap. * * @return pageMap */ public final IPageMap getPageMap() { return PageMap.forName(this.pageMapName); } }
/** * @return Returns the PageMap that this Page is stored in. */ public final IPageMap getPageMap() { // If the transient needs to be restored if (pageMap == null) { // Look the page map up in the session pageMap = PageMap.forName(pageMapName); } return pageMap; }
/** * Gets the pagemap where the popup page must be created in. * * @return The pagemap where the popup page must be created in * @deprecated will be removed in Wicket 2.0; use {@link #getPageMap(Component)} instead */ public IPageMap getPageMap() { if (pageMapName != null) { return PageMap.forName(pageMapName); } else { throw new UnsupportedOperationException( "this method can only work when a page map is set. Either call" + " getPageMap(Component) or set the page map"); } }
/** * Gets the pagemap where the popup page must be created in. * * @return The pagemap where the popup page must be created in * @deprecated will be removed in Wicket 2.0; use {@link #getPageMap(Component)} instead */ @Deprecated public IPageMap getPageMap() { if (pageMapName != null) { return PageMap.forName(pageMapName); } else { throw new UnsupportedOperationException( "this method can only work when a page map is set. Either call" + " getPageMap(Component) or set the page map"); } }
/** * @return Page map for this link */ public final IPageMap getPageMap() { if (pageMapName != null) { return PageMap.forName(pageMapName); } else { return getPage().getPageMap(); } }
/** * @return Page map for this link */ public final IPageMap getPageMap() { if (pageMapName != null) { return PageMap.forName(pageMapName); } else { return getPage().getPageMap(); } }
return PageMap.forName(pageMapName);
return PageMap.forName(pageMapName);
/** * Initializes Page by adding it to the Session and initializing it. */ private final void init() { final RequestCycle cycle = getRequestCycle(); String pageMapName = null; if (cycle != null) { RequestParameters parameters = getRequest().getRequestParameters(); pageMapName = parameters.getPageMapName(); if (pageMapName != null) { pageMapName = Strings.escapeMarkup(pageMapName).toString(); } } final IPageMap pageMap = PageMap.forName(pageMapName); init(pageMap); }
/** * Initializes Page by adding it to the Session and initializing it. */ private final void init() { final RequestCycle cycle = getRequestCycle(); String pageMapName = null; if (cycle != null) { RequestParameters parameters = getRequest().getRequestParameters(); pageMapName = parameters.getPageMapName(); } final IPageMap pageMap = PageMap.forName(pageMapName); init(pageMap); }
pageMap = PageMap.forName(parameters.getPageMapName());
/** * Redirects to intercept page using the page map for the current request * * @param interceptPageClass * The intercept page class to redirect to */ private void redirectToInterceptPage(final Class interceptPageClass) { final RequestCycle cycle = RequestCycle.get(); final Page requestPage = cycle.getRequest().getPage(); /* * requestPage can be null if we throw the restart response exception before any page is * instantiated in user's session. if this happens we switch to the pagemap of the request. */ final IPageMap pageMap; if (requestPage != null) { pageMap = requestPage.getPageMap(); } else { RequestParameters parameters = cycle.getRequest().getRequestParameters(); pageMap = PageMap.forName(parameters.getPageMapName()); } pageMap.redirectToInterceptPage(interceptPageClass); } }