Search in sources :

Example 6 with PageInfo

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);
}
Also used : PageInfo(org.apache.wicket.request.mapper.info.PageInfo) IRequestablePage(org.apache.wicket.request.component.IRequestablePage)

Example 7 with PageInfo

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);
}
Also used : PageInfo(org.apache.wicket.request.mapper.info.PageInfo) Test(org.junit.Test)

Aggregations

PageInfo (org.apache.wicket.request.mapper.info.PageInfo)7 IRequestablePage (org.apache.wicket.request.component.IRequestablePage)4 ComponentInfo (org.apache.wicket.request.mapper.info.ComponentInfo)4 PageComponentInfo (org.apache.wicket.request.mapper.info.PageComponentInfo)4 ListenerRequestHandler (org.apache.wicket.core.request.handler.ListenerRequestHandler)3 BookmarkableListenerRequestHandler (org.apache.wicket.core.request.handler.BookmarkableListenerRequestHandler)2 RenderPageRequestHandler (org.apache.wicket.core.request.handler.RenderPageRequestHandler)2 Url (org.apache.wicket.request.Url)2 PageParameters (org.apache.wicket.request.mapper.parameter.PageParameters)2 Test (org.junit.Test)2 BookmarkablePageRequestHandler (org.apache.wicket.core.request.handler.BookmarkablePageRequestHandler)1 PageAndComponentProvider (org.apache.wicket.core.request.handler.PageAndComponentProvider)1 IRequestHandlerDelegate (org.apache.wicket.request.IRequestHandlerDelegate)1