|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.Page
wicket.markup.html.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 inherited from class wicket.Component |
Component.ComponentModelChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
| Fields inherited from class wicket.Page |
ACCESS_ALLOWED, ACCESS_DENIED |
| Fields inherited from class wicket.Component |
FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4 |
| Constructor Summary | |
protected |
WebPage()
Constructor. |
protected |
WebPage(IModel model)
|
| Method Summary | |
java.lang.String |
getMarkupType()
Gets the markup type for a WebPage, which is "html" by default. |
protected WebRequestCycle |
getWebRequestCycle()
|
protected BookmarkablePageLink |
homePageLink(java.lang.String id)
Creates and returns a bookmarkable link to this application's home page. |
java.lang.String |
urlFor(Component component,
java.lang.Class listenerInterface)
Returns a URL that references a given interface on a component. |
java.lang.String |
urlFor(java.lang.String path)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
java.lang.String |
urlFor(java.lang.String pageMapName,
java.lang.Class pageClass,
PageParameters parameters)
Returns a bookmarkable URL that references a given page class using a given set of page parameters. |
| Methods inherited from class wicket.MarkupContainer |
add, autoAdd, contains, findMarkupStream, get, getMarkupStream, internalAdd, internalBeginRequest, internalEndRequest, iterator, onComponentTagBody, remove, removeAll, 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 |
| Constructor Detail |
protected WebPage()
protected WebPage(IModel model)
Page.Page(IModel)| Method Detail |
public java.lang.String urlFor(java.lang.String pageMapName,
java.lang.Class pageClass,
PageParameters parameters)
urlFor in class PagepageMapName - Name of pagemap to usepageClass - Class of pageparameters - Parameters to page
public java.lang.String urlFor(Component component,
java.lang.Class listenerInterface)
urlFor in class Pagecomponent - The component to referencelistenerInterface - The listener interface on the component
public java.lang.String urlFor(java.lang.String path)
Page
urlFor in class Pagepath - The path
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 MarkupContainerprotected final WebRequestCycle getWebRequestCycle()
protected final BookmarkablePageLink homePageLink(java.lang.String id)
id - Name of link
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||