@ApplicationScoped public class WindowContextConfig extends AbstractAttributeAware implements CodiConfig
WindowContext
- it's customizable via the @Alternative or @Specializes mechanism of CDI.Modifier | Constructor and Description |
---|---|
protected |
WindowContextConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxWindowContextCount()
Restricts the number of active windows.
|
int |
getWindowContextTimeoutInMinutes()
Specifies the time for the timeout for a window.
|
boolean |
isAddWindowIdToActionUrlsEnabled()
if set to
true CODI will add a windowId=xxx parameter
while encoding each action URL. |
boolean |
isCloseEmptyWindowContextsEnabled()
Allows to activate the cleanup of empty window contexts to avoid cleanup e.g.
|
boolean |
isCloseWindowContextEventEnabled()
Specifies if the
CloseWindowContextEvent
will be fired. |
boolean |
isCreateWindowContextEventEnabled()
Specifies if the
CreateWindowContextEvent
will be fired. |
boolean |
isEagerWindowContextDetectionEnabled()
Allows to restore the window-context before the component tree gets built.
|
boolean |
isUnknownWindowIdsAllowed()
Allows to restrict window-ids.
|
boolean |
isUrlParameterSupported()
Specifies if it is allowed to use URL params for forwarding the current window-id.
|
containsAttribute, getAttribute, initConfig, setAttribute, setAttribute
public boolean isUrlParameterSupported()
public boolean isUnknownWindowIdsAllowed()
With the default window handler (esp. for JSF 1.2), URLs have to contain the window-id. If users bookmark these links, they could open 2-n tabs (with the bookmark) which have the same window-id. It is only possible to prevent it if the ClientSideWindowHandler is used.
ATTENTION: Since CODI-1.0.6 this is set to true
as defalt!
This must be enabled to
true
to allow all windowIds already present in window.name.
false
to only allow window-ids which are generated by CODIpublic boolean isAddWindowIdToActionUrlsEnabled()
true
CODI will add a windowId=xxx parameter
while encoding each action URL.public int getWindowContextTimeoutInMinutes()
public int getMaxWindowContextCount()
public boolean isCloseEmptyWindowContextsEnabled()
public boolean isEagerWindowContextDetectionEnabled()
public boolean isCreateWindowContextEventEnabled()
CreateWindowContextEvent
will be fired.public boolean isCloseWindowContextEventEnabled()
CloseWindowContextEvent
will be fired.Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.