|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.api.config.ClientConfig
@SessionScoped public class ClientConfig
Contains information about whether the user has JavaScript enabled on his client, etc. It also contains the windowhandler html which gets sent to the browser to detect the current windowId. This allows the 'customisation' of this html file to e.g. adopt the background colour to avoid screen flickering.
Field Summary | |
---|---|
protected String |
windowHandlerHtml
|
Constructor Summary | |
---|---|
ClientConfig()
|
Method Summary | |
---|---|
String |
getWindowHandlerHtml()
This might return different windowhandlers based on user settings like his language, an affiliation, etc |
String |
getWindowHandlerResourceLocation()
For branding the windowhandler page - e.g. change the backgroundcolour or the language of the message text - you can just copy the content of the DEFAULT_WINDOW_HANDLER_HTML_FILE and adopt it to your needs. |
boolean |
isJavaScriptEnabled()
Defaults to true . |
void |
setJavaScriptEnabled(boolean javaScriptEnabled)
Set it to false if you don't like to use the
JavaScript based client side windowhandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String windowHandlerHtml
Constructor Detail |
---|
public ClientConfig()
Method Detail |
---|
public boolean isJavaScriptEnabled()
true
.
public void setJavaScriptEnabled(boolean javaScriptEnabled)
false
if you don't like to use the
JavaScript based client side windowhandler. In this case
the request will be returned directly.
javaScriptEnabled
- public String getWindowHandlerResourceLocation()
DEFAULT_WINDOW_HANDLER_HTML_FILE
and adopt it to your needs.
public String getWindowHandlerHtml() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |