org.apache.wicket.examples
Class WicketExamplePage

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.Page
              extended by org.apache.wicket.markup.html.WebPage
                  extended by org.apache.wicket.examples.WicketExamplePage
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<Component>, IClusterable, IConverterLocator, IRedirectListener, IRequestListener, INewBrowserWindowListener, IManageablePage, IRequestableComponent, IRequestablePage
Direct Known Subclasses:
AlternativePageFromWebContext, AuthenticatedWebPage, AuthenticatedWebPage, BasePage, BasePage, BasePage, BasePage, BookDetails, BookmarkablePageLinkPage, BorderPage, ButtonPage, Captcha, CheckBoxMultipleChoicePage, CheckBoxPage, CheckGroupPage, CheckGroupPage2, DatesPage, DropDownChoicePage, DynamicPage, Echo, ExamplePage, ExternalLinkPage, FormInput, FormPage, FragmentPage, GuestBook, HangmanPage, HelloBrowser, HelloWorld, Home, Home, Home, Home, Home, Home, Home, Home, Home, HomePage, HomePage, HttpsPage, IncludePage, Index, Index, Index, Index, Index, Index, LabelPage, LinkPage, ListChoicePage, ListMultipleChoicePage, LocalizedPage, MultiLineLabelPage, MultiUploadPage, MySignInPage, Page1, Page1, Page1, Page1, Page2, Page2, Page2, Page2, Page3, Page3, Page3, Page4, Page5, PageFromWebContext, PageLinkPage, PageWithCustomLoading, PalettePage, PanelPage, Popup, RadioChoicePage, RadioGroupPage, RadioGroupPage2, RequestMapperHomePage, SelectPage, SignIn, SignIn, SignIn2, SignOut, SignOut, SignOut, SignOut, StockQuotePage, SubmitLinkPage, TabbedPanelPage, TemplatePage, TemplatePage, TextAreaPage, TextFieldPage, TopFrame, UnicodeConverter, UploadPage, WizardPage

public class WicketExamplePage
extends WebPage

Base class for all example pages.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.Page
Page.IPageSerializer
 
Field Summary
 
Fields inherited from class org.apache.wicket.Page
serializer
 
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_CONFIGURED, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Fields inherited from interface org.apache.wicket.markup.html.INewBrowserWindowListener
INTERFACE
 
Fields inherited from interface org.apache.wicket.IRedirectListener
INTERFACE
 
Constructor Summary
WicketExamplePage()
          Constructor
WicketExamplePage(IModel<?> model)
          Construct.
WicketExamplePage(PageParameters pageParameters)
          Constructor
 
Method Summary
protected  void explain()
          Override base method to provide an explanation
protected  void onInitialize()
          This method is meant to be used as an alternative to initialize components.
 
Methods inherited from class org.apache.wicket.markup.html.WebPage
configureResponse, getMarkupType, homePageLink, onAfterRender, onNewBrowserWindow, setHeaders
 
Methods inherited from class org.apache.wicket.Page
afterCallComponent, beforeCallComponent, componentChanged, componentRendered, detachModels, dirty, dirty, endComponentRender, getAutoIndex, getId, getMarkup, getNumericId, getPage, getPageClass, getPageId, getPageParameters, getPageReference, getRenderCount, getSizeInBytes, getStatelessHint, hierarchyAsString, internalOnModelChanged, isBookmarkable, isErrorPage, isPageStateless, onBeforeRender, onDetach, onPageAttached, onRedirect, onRender, prepareForRender, renderPage, setNumericId, setStatelessHint, setWasCreatedBookmarkable, startComponentRender, toString, wasCreatedBookmarkable, writeReplace
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupStream, hasAssociatedMarkup, internalAdd, iterator, iterator, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, visitChildren, visitChildren
 
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, isActionAuthorized, isAttached, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onComponentTag, onConfigure, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.wicket.request.component.IRequestableComponent
canCallListenerInterface, detach, get, getBehaviors, getPage, getPageRelativePath
 

Constructor Detail

WicketExamplePage

public WicketExamplePage()
Constructor


WicketExamplePage

public WicketExamplePage(PageParameters pageParameters)
Constructor


WicketExamplePage

public WicketExamplePage(IModel<?> model)
Construct.

Parameters:
model -
Method Detail

onInitialize

protected void onInitialize()
Description copied from class: Component
This method is meant to be used as an alternative to initialize components. Usually the component's constructor is used for this task, but sometimes a component cannot be initialized in isolation, it may need to access its parent component or its markup in order to fully initialize. This method is invoked once per component's lifecycle when a path exists from this component to the Page thus providing the component with an atomic callback when the component's environment is built out.

Overrides must call super#Component.onInitialize(). Usually this should be the first thing an override does, much like a constructor.

Parent containers are guaranteed to be initialized before their children

It is safe to use Component.getPage() in this method

NOTE:The timing of this call is not precise, the contract is that it is called sometime before Component.onBeforeRender().

Overrides:
onInitialize in class Component
See Also:
Component.onInitialize()

explain

protected void explain()
Override base method to provide an explanation



Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.