Class GenericWebPage<T>

Type Parameters:
T - the type of the page's model object
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,GenericWebPage<T>>, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IManageablePage, IRequestableComponent, IRequestablePage, IHierarchical<Component>, IClusterable

public class GenericWebPage<T> extends WebPage implements IGenericComponent<T,GenericWebPage<T>>
A WebPage with typesafe getters and setters for the model and its underlying object
See Also:
  • Constructor Details

    • GenericWebPage

      protected GenericWebPage()
      Constructor. Having this constructor public means that your page is 'bookmarkable' and hence can be called/ created from anywhere.
    • GenericWebPage

      protected GenericWebPage(IModel<T> model)
      Parameters:
      model - the page's model
      See Also:
    • GenericWebPage

      protected GenericWebPage(PageParameters parameters)
      Constructor which receives wrapped query string parameters for a request. Having this constructor public means that your page is 'bookmarkable' and hence can be called/ created from anywhere. For bookmarkable pages (as opposed to when you construct page instances yourself, this constructor will be used in preference to a no-arg constructor, if both exist. Note that nothing is done with the page parameters argument. This constructor is provided so that tools such as IDEs will include it their list of suggested constructors for derived classes. Please call this constructor if you want to remember the pageparameters Page.getPageParameters(). So that they are reused for stateless links.
      Parameters:
      parameters - Wrapped query string parameters.