org.apache.wicket.jmx
Class PageSettings

java.lang.Object
  extended by org.apache.wicket.jmx.PageSettings
All Implemented Interfaces:
PageSettingsMBean

public class PageSettings
extends Object
implements PageSettingsMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
PageSettings(Application application)
          Create.
 
Method Summary
 boolean getAutomaticMultiWindowSupport()
          Gets whether Wicket should try to support opening multiple windows for the same session transparently.
 boolean getVersionPagesByDefault()
           
 void setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
          Sets whether Wicket should try to support opening multiple windows for the same session transparently.
 void setVersionPagesByDefault(boolean pagesVersionedByDefault)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSettings

public PageSettings(Application application)
Create.

Parameters:
application -
Method Detail

getAutomaticMultiWindowSupport

public boolean getAutomaticMultiWindowSupport()
Description copied from interface: PageSettingsMBean
Gets whether Wicket should try to support opening multiple windows for the same session transparently. If this is true - the default setting -, Wicket tries to detect whether a new window was opened by a user (e.g. in Internet Explorer by pressing ctrl+n or ctrl+click on a link), and if it detects that, it creates a new page map for that window on the fly. As a page map represents the 'history' of one window, each window will then have their own history. If two windows would share the same page map, the non-bookmarkable links on one window could refer to stale state after working a while in the other window.

Currently, Wicket trying to do this is a best effort that is not completely fail safe. When the client does not support cookies, support gets tricky and incomplete. See WebPage's internals for the implementation.

Specified by:
getAutomaticMultiWindowSupport in interface PageSettingsMBean
Returns:
Whether Wicket should try to support multiple windows transparently
See Also:
PageSettingsMBean.getAutomaticMultiWindowSupport()

getVersionPagesByDefault

public boolean getVersionPagesByDefault()
Specified by:
getVersionPagesByDefault in interface PageSettingsMBean
Returns:
Returns the pagesVersionedByDefault.
See Also:
PageSettingsMBean.getVersionPagesByDefault()

setAutomaticMultiWindowSupport

public void setAutomaticMultiWindowSupport(boolean automaticMultiWindowSupport)
Description copied from interface: PageSettingsMBean
Sets whether Wicket should try to support opening multiple windows for the same session transparently. If this is true - the default setting -, Wicket tries to detect whether a new window was opened by a user (e.g. in Internet Explorer by pressing ctrl+n or ctrl+click on a link), and if it detects that, it creates a new page map for that window on the fly. As a page map represents the 'history' of one window, each window will then have their own history. If two windows would share the same page map, the non-bookmarkable links on one window could refer to stale state after working a while in the other window.

Currently, Wicket trying to do this is a best effort that is not completely fail safe. When the client does not support cookies, support gets tricky and incomplete. See WebPage's internals for the implementation.

Specified by:
setAutomaticMultiWindowSupport in interface PageSettingsMBean
Parameters:
automaticMultiWindowSupport - Whether Wicket should try to support multiple windows transparently
See Also:
PageSettingsMBean.setAutomaticMultiWindowSupport(boolean)

setVersionPagesByDefault

public void setVersionPagesByDefault(boolean pagesVersionedByDefault)
Specified by:
setVersionPagesByDefault in interface PageSettingsMBean
Parameters:
pagesVersionedByDefault - The pagesVersionedByDefault to set.
See Also:
PageSettingsMBean.setVersionPagesByDefault(boolean)


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