|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.Component wicket.MarkupContainer wicket.Page wicket.markup.html.WebPage
public class WebPage
Base class for HTML pages. This subclass of Page simply returns HTML when asked for its markup type. It also has a method which subclasses can use to retrieve a bookmarkable link to the application's home page.
WebPages can be constructed with any constructor when they are being used in a Wicket session, but if you wish to link to a Page using a URL that is "bookmarkable" (which implies that the URL will not have any session information encoded in it, and that you can call this page directly without having a session first directly from your browser), you need to implement your Page with a no-arg constructor or with a constructor that accepts a PageParameters argument (which wraps any query string parameters for a request). In case the page has both constructors, the constructor with PageParameters will be used.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class wicket.Component |
---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
Field Summary |
---|
Fields inherited from class wicket.Page |
---|
LATEST_VERSION |
Fields inherited from class wicket.Component |
---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Fields inherited from interface wicket.markup.html.INewBrowserWindowListener |
---|
INTERFACE |
Fields inherited from interface wicket.IRedirectListener |
---|
INTERFACE |
Constructor Summary | |
---|---|
protected |
WebPage()
Constructor. |
protected |
WebPage(IModel model)
|
protected |
WebPage(PageMap pageMap)
|
protected |
WebPage(PageMap pageMap,
IModel model)
|
protected |
WebPage(PageParameters parameters)
Constructor which receives wrapped query string parameters for a request. |
Method Summary | |
---|---|
protected void |
configureResponse()
Set-up response with appropriate content type, locale and encoding. |
BodyContainer |
getBodyContainer()
Get a facade to the body container for adding onLoad javascript to the body tag. |
java.lang.String |
getMarkupType()
Gets the markup type for a WebPage, which is "html" by default. |
URLCompressor |
getUrlCompressor()
This method is called when the compressing coding and response stategies are configured in your Application object like this: |
protected WebRequestCycle |
getWebRequestCycle()
|
protected BookmarkablePageLink |
homePageLink(java.lang.String id)
Creates and returns a bookmarkable link to this application's home page. |
protected void |
internalOnAttach()
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
protected void |
onDetach()
Called to allow a component to detach resources after use. |
void |
onNewBrowserWindow()
Called when a new browser window is detected. |
Methods inherited from class wicket.MarkupContainer |
---|
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wicket.session.pagemap.IPageMapEntry |
---|
getPage |
Constructor Detail |
---|
protected WebPage()
protected WebPage(IModel model)
Page.Page(IModel)
protected WebPage(PageMap pageMap)
Page.Page(PageMap)
protected WebPage(PageMap pageMap, IModel model)
Page.Page(PageMap, IModel)
protected WebPage(PageParameters parameters)
parameters
- Wrapped query string parameters.Method Detail |
---|
protected void internalOnAttach()
Component
internalOnAttach
in class Component
Component.internalOnAttach()
public BodyContainer getBodyContainer()
public java.lang.String getMarkupType()
Note: The markup type must be equal to the extension of the markup file. In the case of WebPages, it must always be "html".
getMarkupType
in class MarkupContainer
protected void configureResponse()
Page
Note: Prior to Wicket 1.1 the output encoding was determined by the page's markup encoding. Because this caused uncertainties about the /request/ encoding, it has been changed in favour of the new, much safer, approach. Please see the Wiki for more details.
configureResponse
in class Page
Page.configureResponse()
protected final WebRequestCycle getWebRequestCycle()
protected final BookmarkablePageLink homePageLink(java.lang.String id)
id
- Name of link
public final URLCompressor getUrlCompressor()
protected IRequestCycleProcessor newRequestCycleProcessor() { return new CompoundRequestCycleProcessor(new WebURLCompressingCodingStrategy(), new WebURLCompressingTargetResolverStrategy(), null, null, null); }
WebURLCompressingCodingStrategy
,
WebURLCompressingTargetResolverStrategy
,
URLCompressor
protected void onDetach()
Component
onDetach
in class Component
Component.onDetach()
public void onNewBrowserWindow()
INewBrowserWindowListener
onNewBrowserWindow
in interface INewBrowserWindowListener
INewBrowserWindowListener.onNewBrowserWindow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |