use of org.apache.wicket.request.mapper.info.PageInfo in project wicket by apache.
the class AbstractBookmarkableMapper method getPageInfo.
protected final PageInfo getPageInfo(IPageRequestHandler handler) {
Args.notNull(handler, "handler");
Integer pageId = null;
if (handler.isPageInstanceCreated()) {
IRequestablePage page = handler.getPage();
if (page.isPageStateless() == false) {
pageId = page.getPageId();
}
}
return new PageInfo(pageId);
}
use of org.apache.wicket.request.mapper.info.PageInfo in project wicket by apache.
the class AbstractBookmarkableMapperTest method testProcessHybridWithAuthorizationException.
/**
* <a href="https://issues.apache.org/jira/browse/WICKET-5734">WICKET-5734</a>
*/
@Test
public void testProcessHybridWithAuthorizationException() throws Exception {
AbstractBookmarkableMapperStub mapper = new AbstractBookmarkableMapperStub();
mapper.processHybrid(new PageInfo(), EmptyPage.class, null, 0);
}
Aggregations