Class PrimeRequestContext


  • public class PrimeRequestContext
    extends Object
    A PrimeRequestContext is a contextual store for the current request. It can be accessed via:
    PrimeRequestContext.getCurrentInstance(context)
    • Field Detail

      • INSTANCE_KEY

        public static final String INSTANCE_KEY
    • Constructor Detail

      • PrimeRequestContext

        public PrimeRequestContext​(javax.faces.context.FacesContext context)
    • Method Detail

      • getCurrentInstance

        public static PrimeRequestContext getCurrentInstance​(javax.faces.context.FacesContext facesContext)
      • setCurrentInstance

        public static void setCurrentInstance​(PrimeRequestContext context,
                                              javax.faces.context.FacesContext facesContext)
      • getCallbackParams

        public Map<String,​Object> getCallbackParams()
        Returns:
        all callback parameters added in the current request.
      • getInitScriptsToExecute

        public List<String> getInitScriptsToExecute()
        Returns:
        all scripts added in the current request and called first before other scripts are executed.
      • getScriptsToExecute

        public List<String> getScriptsToExecute()
        Returns:
        all scripts added in the current request.
      • getWidgetBuilder

        public WidgetBuilder getWidgetBuilder()
        Returns:
        Shared WidgetBuilder instance of the current request
      • getStyleClassBuilder

        public StyleClassBuilder getStyleClassBuilder()
        Returns:
        Shared StyleClassBuilder instance of the current request
      • getStyleBuilder

        public StyleBuilder getStyleBuilder()
        Returns:
        Shared StyleBuilder instance of the current request
      • getAjaxRequestBuilder

        public AjaxRequestBuilder getAjaxRequestBuilder()
        Returns:
        Shared AjaxRequestBuilder instance of the current request
      • getCSVBuilder

        public CSVBuilder getCSVBuilder()
        Returns:
        Shared Client Side Validation builder instance of the current request
      • getApplicationContext

        public PrimeApplicationContext getApplicationContext()
        Returns:
        ApplicationContext instance.
      • release

        public void release()
        Clear resources.
      • isSecure

        public boolean isSecure()
        Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
        Returns:
        if secure or not.
      • isIgnoreAutoUpdate

        public boolean isIgnoreAutoUpdate()
        Returns:
        true if auto-updatable components should not be updated automatically in this request.
      • setIgnoreAutoUpdate

        public void setIgnoreAutoUpdate​(Boolean ignoreAutoUpdate)
        Overrides eventually set ignoreAutoUpdate from client. May be used e.g. combined with server-side update via PrimeFaces.current().ajax().update("xxx")
        Parameters:
        ignoreAutoUpdate -
      • isRTL

        public boolean isRTL()
      • isTouchable

        public boolean isTouchable()
      • isFlex

        public boolean isFlex()
      • isHideResourceVersion

        public boolean isHideResourceVersion()