org.apache.wicket.settings
Interface IPageSettings

All Known Implementing Classes:
PageSettings

public interface IPageSettings

Interface for page related settings.

Author:
Igor Vaynberg (ivaynberg), Eelco Hillenius

Method Summary
 void addComponentResolver(IComponentResolver resolver)
          Adds a component resolver to the list.
 List<IComponentResolver> getComponentResolvers()
          Get the (modifiable) list of IComponentResolvers.
 boolean getRecreateMountedPagesAfterExpiry()
          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 getVersionPagesByDefault()
           
 void setRecreateMountedPagesAfterExpiry(boolean recreateMountedPagesAfterExpiry)
          Sets the recreateMountedPagesAfterExpiry setting
 void setVersionPagesByDefault(boolean pagesVersionedByDefault)
          A global setting that tells the pages to update their page id if their component hierarchy changes somehow.
 

Method Detail

addComponentResolver

void addComponentResolver(IComponentResolver resolver)
Adds a component resolver to the list.

Parameters:
resolver - The IComponentResolver that is added

getComponentResolvers

List<IComponentResolver> getComponentResolvers()
Get the (modifiable) list of IComponentResolvers.

Returns:
List of ComponentResolvers

getVersionPagesByDefault

boolean getVersionPagesByDefault()
Returns:
whether all pages should should update their page id when their component hierarchy changes somehow

setVersionPagesByDefault

void setVersionPagesByDefault(boolean pagesVersionedByDefault)
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.

getRecreateMountedPagesAfterExpiry

boolean getRecreateMountedPagesAfterExpiry()
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:
WICKET-4014, WICKET-4290

setRecreateMountedPagesAfterExpiry

void setRecreateMountedPagesAfterExpiry(boolean recreateMountedPagesAfterExpiry)
Sets the recreateMountedPagesAfterExpiry setting

Parameters:
recreateMountedPagesAfterExpiry -


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.