org.ajax4jsf.context
Class ContextInitParameters

java.lang.Object
  extended by org.ajax4jsf.context.ContextInitParameters

public class ContextInitParameters
extends java.lang.Object

This class hold all methods for get application init parameters. Created for single access point to all parameters - simplest for a documentation.

Author:
asmirnov

Field Summary
static java.lang.String[] COMPRESS_SERVER_STATE
           
static java.lang.String[] DATATABLE_USES_VIEW_LOCALE
           
static java.lang.String HANDLE_VIEW_EXPIRED_ON_CLIENT
          This parameter define where ViewExpiredException should be handled.
static java.lang.String[] NUMBER_OF_LOGICAL_VIEWS_IN_SESSION
           
static java.lang.String[] NUMBER_OF_VIEWS_IN_SESSION
           
static java.lang.String[] SERIALIZE_SERVER_STATE
           
 
Method Summary
static int getNumbersOfLogicalViews(javax.faces.context.FacesContext context)
          Get number of logical views for store in session for every viewId by AjaxStateManager
static int getNumbersOfViewsInSession(javax.faces.context.FacesContext context)
          Get number of views for store in session by AjaxStateManager
static boolean isCompressServerState(javax.faces.context.FacesContext context)
           
static boolean isDatatableUsesViewLocale(javax.faces.context.FacesContext context)
          Defines whether data table should use view root locale for sorting and filtering or the default platform one
static boolean isSerializeServerState(javax.faces.context.FacesContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZE_SERVER_STATE

public static final java.lang.String[] SERIALIZE_SERVER_STATE

COMPRESS_SERVER_STATE

public static final java.lang.String[] COMPRESS_SERVER_STATE
Since:
3.3.3

NUMBER_OF_VIEWS_IN_SESSION

public static final java.lang.String[] NUMBER_OF_VIEWS_IN_SESSION

NUMBER_OF_LOGICAL_VIEWS_IN_SESSION

public static final java.lang.String[] NUMBER_OF_LOGICAL_VIEWS_IN_SESSION

HANDLE_VIEW_EXPIRED_ON_CLIENT

public static final java.lang.String HANDLE_VIEW_EXPIRED_ON_CLIENT
This parameter define where ViewExpiredException should be handled. If is it equals "true" , framework should proparate exception to client-side.

See Also:
Constant Field Values

DATATABLE_USES_VIEW_LOCALE

public static final java.lang.String[] DATATABLE_USES_VIEW_LOCALE
Method Detail

isSerializeServerState

public static final boolean isSerializeServerState(javax.faces.context.FacesContext context)

isCompressServerState

public static final boolean isCompressServerState(javax.faces.context.FacesContext context)
Parameters:
context -
Returns:
Since:
3.3.3

getNumbersOfViewsInSession

public static int getNumbersOfViewsInSession(javax.faces.context.FacesContext context)
Get number of views for store in session by AjaxStateManager

Parameters:
context - - current faces context.
Returns:

getNumbersOfLogicalViews

public static int getNumbersOfLogicalViews(javax.faces.context.FacesContext context)
Get number of logical views for store in session for every viewId by AjaxStateManager

Parameters:
context - - current faces context.
Returns:

isDatatableUsesViewLocale

public static boolean isDatatableUsesViewLocale(javax.faces.context.FacesContext context)
Defines whether data table should use view root locale for sorting and filtering or the default platform one

Parameters:
context -
Returns:


Copyright © 2010. All Rights Reserved.