java.lang.Object
org.apache.wicket.request.handler.render.PageRenderer
- Direct Known Subclasses:
WebPageRenderer
Delegate responsible for rendering the page. Depending on the implementation (web, test, portlet,
etc.) the delegate may or may not support the redirect policy set in the
RenderPageRequestHandler
.- Author:
- Matej Knopp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
When the page renders to buffer and it is still stateless after rendering, this flag determines whether the redirect will take place or not.protected IRequestablePage
getPage()
protected IPageProvider
protected RenderPageRequestHandler.RedirectPolicy
protected RenderPageRequestHandler
protected String
protected boolean
protected boolean
protected boolean
protected boolean
abstract void
respond
(RequestCycle requestCycle) Render the response using giveRequestCycle
.
-
Constructor Details
-
PageRenderer
Construct.- Parameters:
renderPageRequestHandler
-
-
-
Method Details
-
getPageProvider
- Returns:
- page provider
-
getRedirectPolicy
- Returns:
- redirect policy
-
getRenderPageRequestHandler
- Returns:
- the request handler
-
getPage
- Returns:
- page instance
-
isOnePassRender
-
isRedirectToRender
-
isRedirectToBuffer
-
getSessionId
- Returns:
- the current session id for stateful pages and
null
for stateless pages
-
isSessionTemporary
- Returns:
- whether the current session is temporary
-
enableRedirectForStatelessPage
When the page renders to buffer and it is still stateless after rendering, this flag determines whether the redirect will take place or not.By default we will redirect. This is so we do not end up having the browser be on a listener URL. A simple scenario is calling
setResponsePage(new StatelessPage())
inside form'sonSubmit()
or link'sonClick()
callbacks, or any other request listener callback. What will happen is that the browser will be on URL like./wicket/page?0-2.IFormSubmitListener-form
, and we will not redirect - leaving the browser on such URL. This is a worse alternative then saving one redirect because it may cause problems if user presses the refresh button in the browser.- Returns:
- redirect flag
-
respond
Render the response using giveRequestCycle
.- Parameters:
requestCycle
-
-