@SessionScoped public class DefaultClientWindowConfig extends Object implements ClientWindowConfig
Default implementation of ClientWindowConfig
.
By default it will use the internal windowhandler.html
You can @Specializes this class to tweak the configuration or provide a completely new implementation as @Alternative.
ClientWindowConfig.ClientWindowRenderMode
Constructor and Description |
---|
DefaultClientWindowConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getClientWindowHtml() |
ClientWindowConfig.ClientWindowRenderMode |
getClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
By default we use
ClientWindowRenderMode#LAZY unless
we detect a bot. |
String |
getClientWindowResourceLocation()
Overwrite this to define your own ClientWindow handler html location.
|
int |
getMaxWindowContextCount()
Restricts the number of active windows.
|
String |
getUserAgent(javax.faces.context.FacesContext facesContext)
This information will get stored as it cannot
change during the session anyway.
|
protected void |
init() |
boolean |
isClientWindowStoreWindowTreeEnabledOnButtonClick() |
boolean |
isClientWindowStoreWindowTreeEnabledOnLinkClick() |
boolean |
isClientWindowTokenizedRedirectEnabled() |
boolean |
isJavaScriptEnabled() |
void |
setJavaScriptEnabled(boolean javaScriptEnabled) |
@PostConstruct protected void init()
public boolean isJavaScriptEnabled()
isJavaScriptEnabled
in interface ClientWindowConfig
public void setJavaScriptEnabled(boolean javaScriptEnabled)
setJavaScriptEnabled
in interface ClientWindowConfig
javaScriptEnabled
- whether JavaScript is enabledpublic ClientWindowConfig.ClientWindowRenderMode getClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
ClientWindowRenderMode#LAZY
unless
we detect a bot. Use JsfModuleConfig.getDefaultWindowMode()
to change this default behavior. Alternative:
Override this method to exclude other requests from getting accessed.getClientWindowRenderMode
in interface ClientWindowConfig
public String getClientWindowHtml()
getClientWindowHtml
in interface ClientWindowConfig
public String getUserAgent(javax.faces.context.FacesContext facesContext)
public String getClientWindowResourceLocation()
public int getMaxWindowContextCount()
ClientWindowConfig
getMaxWindowContextCount
in interface ClientWindowConfig
public boolean isClientWindowStoreWindowTreeEnabledOnLinkClick()
isClientWindowStoreWindowTreeEnabledOnLinkClick
in interface ClientWindowConfig
ClientWindowConfig.ClientWindowRenderMode.CLIENTWINDOW
.windowhandler.html
public boolean isClientWindowStoreWindowTreeEnabledOnButtonClick()
isClientWindowStoreWindowTreeEnabledOnButtonClick
in interface ClientWindowConfig
ClientWindowConfig.ClientWindowRenderMode.CLIENTWINDOW
.windowhandler.html
public boolean isClientWindowTokenizedRedirectEnabled()
isClientWindowTokenizedRedirectEnabled
in interface ClientWindowConfig
Copyright © 2020 The Apache Software Foundation. All rights reserved.