java.lang.Object
org.apache.wicket.settings.PageSettings
Class for page related settings.
- Author:
- Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddComponentResolver
(IComponentResolver resolver) Adds a component resolver to the list.boolean
Get the (modifiable) list of IComponentResolvers.boolean
When enabled (default), urls on mounted pages will contain the full mount path, including PageParameters, allowing wicket to reinstantiate the page if got expired.boolean
setCallListenerAfterExpiry
(boolean callAfterExpiry) Sets a setting that determines whether Wicket should execute theIRequestListener
on a component which owner page is freshly created after expiration of the old onesetRecreateBookmarkablePagesAfterExpiry
(boolean recreateBookmarkablePagesAfterExpiry) Sets the recreateBookmarkablePagesAfterExpiry settingsetVersionPagesByDefault
(boolean pagesVersionedByDefault) A global setting that tells the pages to update their page id if their component hierarchy changes somehow.
-
Constructor Details
-
PageSettings
public PageSettings()
-
-
Method Details
-
addComponentResolver
Adds a component resolver to the list.- Parameters:
resolver
- TheIComponentResolver
that is added- Returns:
this
object for chaining
-
getComponentResolvers
Get the (modifiable) list of IComponentResolvers.- Returns:
- List of ComponentResolvers
-
getVersionPagesByDefault
- Returns:
- whether all pages should should update their page id when their component hierarchy changes somehow
-
setVersionPagesByDefault
A global setting that tells the pages to update their page id if their component hierarchy changes somehow. This way versioned pages can have several versions stored in the page stores and the user can go back and forth through the different versions. If a page is not versioned then only its last state is keep in the page stores and going back will lead the user to the page before the current one, not to the previous state of the current one.- Parameters:
pagesVersionedByDefault
- a flag that indicates whether pages should increase their page id when their component hierarchy changes somehow.- Returns:
this
object for chaining
-
getRecreateBookmarkablePagesAfterExpiry
When enabled (default), urls on mounted pages will contain the full mount path, including PageParameters, allowing wicket to reinstantiate the page if got expired. When disabled, urls only use the page id. If this setting is enabled, you should take care that names form fields on mounted pages do not clash with the page parameters.- Returns:
- if urls on mounted pages should be the full mount path
- See Also:
-
setRecreateBookmarkablePagesAfterExpiry
public PageSettings setRecreateBookmarkablePagesAfterExpiry(boolean recreateBookmarkablePagesAfterExpiry) Sets the recreateBookmarkablePagesAfterExpiry setting- Parameters:
recreateBookmarkablePagesAfterExpiry
-- Returns:
this
object for chaining
-
getCallListenerAfterExpiry
- Returns:
true
if Wicket should execute anIRequestListener
on a component which owning page is freshly created after expiration of the old one- See Also:
-
setCallListenerAfterExpiry
Sets a setting that determines whether Wicket should execute theIRequestListener
on a component which owner page is freshly created after expiration of the old one- Parameters:
callAfterExpiry
-true
if Wicket should execute the listener- Returns:
this
object for chaining- See Also:
-