Enum ELExpressionCacheMode

java.lang.Object
java.lang.Enum<ELExpressionCacheMode>
org.apache.myfaces.view.facelets.ELExpressionCacheMode
All Implemented Interfaces:
Serializable, Comparable<ELExpressionCacheMode>, java.lang.constant.Constable

public enum ELExpressionCacheMode extends Enum<ELExpressionCacheMode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Does not cache expressions on these cases: - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper In this case, c:set is assumed to be always on the parent node.
    Does not cache expressions on these cases: - Inside user tags - An expression uses a variable resolved through VariableMapper Note if ui:param is used, each template call should define the same param count, even if only just a few are used.
    Does not cache expressions on these cases: - An expression uses a variable resolved through VariableMapper It uses an alternate FaceletCache that implements AbstractFaceletCache contract and force recompile the facelet in case additional ui:param instances are detected.
    Does not cache expressions.
    Does not cache expressions on these cases: - A c:set tag with only var and value properties was used on the current page.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • noCache

      public static final ELExpressionCacheMode noCache
      Does not cache expressions.
    • strict

      public static final ELExpressionCacheMode strict
      Does not cache expressions on these cases: - A c:set tag with only var and value properties was used on the current page. - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper
    • allowCset

      public static final ELExpressionCacheMode allowCset
      Does not cache expressions on these cases: - ui:param was used on the current template context - Inside user tags - An expression uses a variable resolved through VariableMapper In this case, c:set is assumed to be always on the parent node.
    • always

      public static final ELExpressionCacheMode always
      Does not cache expressions on these cases: - Inside user tags - An expression uses a variable resolved through VariableMapper Note if ui:param is used, each template call should define the same param count, even if only just a few are used.
    • alwaysRecompile

      public static final ELExpressionCacheMode alwaysRecompile
      Does not cache expressions on these cases: - An expression uses a variable resolved through VariableMapper It uses an alternate FaceletCache that implements AbstractFaceletCache contract and force recompile the facelet in case additional ui:param instances are detected.
  • Method Details

    • values

      public static ELExpressionCacheMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ELExpressionCacheMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null