/** * Sets the page as the render target of this request. * * @param page * The page to render as a response */ public final void setResponsePage(final Page page) { IRequestTarget target = new PageRequestTarget(page); setRequestTarget(target); }
/** * Sets the page as the render target of this request. * * @param page * The page to render as a response */ public final void setResponsePage(final Page page) { IRequestTarget target = new PageRequestTarget(page); setRequestTarget(target); }
/** * Returns a URL that references the given page. It also {@link Session#touch(Page) touches} the * page in the session so that it is put in the front of the page stack. Use this method only if * you plan to use it the next request. * * @param page * The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) { IRequestTarget target = new PageRequestTarget(page); getSession().touch(((IPageRequestTarget)target).getPage()); return encodeUrlFor(target); }
/** * Returns a URL that references the given page. It also {@link Session#touch(Page) touches} the * page in the session so that it is put in the front of the page stack. Use this method only if * you plan to use it the next request. * * @param page * The page * @return The url pointing to the provided page */ public final CharSequence urlFor(final Page page) { IRequestTarget target = new PageRequestTarget(page); getSession().touch(((IPageRequestTarget)target).getPage()); return encodeUrlFor(target); }
new PageRequestTarget((Page)component).respond(requestCycle);
return new PageRequestTarget(page);
return new PageRequestTarget(page);
new PageRequestTarget((Page)component).respond(requestCycle);