public interface IPageFactory
IMPORTANT NOTE: Implementations must let subclasses of
ResetResponseException
thrown from the constructing page's
constructor bubble up.
Application.newPageFactory()
,
Session.getPageFactory()
Modifier and Type | Method and Description |
---|---|
<C extends IRequestablePage> |
isBookmarkable(Class<C> pageClass)
Checks whether a page can be instantiated using a bookmarkable URL.
|
<C extends IRequestablePage> |
newPage(Class<C> pageClass)
Creates a new page using a page class.
|
<C extends IRequestablePage> |
newPage(Class<C> pageClass,
PageParameters parameters)
Creates a new Page, passing PageParameters to the Page constructor if such a constructor
exists.
|
<C extends IRequestablePage> C newPage(Class<C> pageClass)
C
- the type of the page classpageClass
- The page class to instantiateWicketRuntimeException
- Thrown if the page cannot be constructed<C extends IRequestablePage> C newPage(Class<C> pageClass, PageParameters parameters)
C
- the type of the page classpageClass
- The class of Page to createparameters
- Any parameters to pass to the Page's constructorWicketRuntimeException
- Thrown if the page cannot be constructed<C extends IRequestablePage> boolean isBookmarkable(Class<C> pageClass)
C
- the type of the page classpageClass
- The class of page to check for bookmarkabilitytrue
if the page can be instantiated by this IPageFactory
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.