- All Implemented Interfaces:
Serializable
,Comparable<SearchExpressionHint>
,Constable
An enum that specifies hints that impact the behavior of a component tree search.
- Since:
- 2.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHint that indicates that if a expression resolves tonull
,null
will be returned.Hint that indicates that a keyword can be resolved later and will just be returned as passthrough, if supported by the keyword.Hint that indicates that only one component should be resolved.Hint that indicates that only realUIComponent
s should be resolved. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchExpressionHint
Returns the enum constant of this class with the specified name.static SearchExpressionHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE_NO_RESULT
Hint that indicates that if a expression resolves to
null
,null
will be returned. Otherwise aComponentNotFoundException
will be thrown.- Since:
- 2.3
-
SKIP_VIRTUAL_COMPONENTS
Hint that indicates that only real
UIComponent
s should be resolved. Virtual components are components, which are reused in repeatable components likeUIData
orui:repeat
.- Since:
- 2.3
-
RESOLVE_SINGLE_COMPONENT
Hint that indicates that only one component should be resolved. This hint is important if a
SearchKeywordResolver
usesUIComponent.visitTree(jakarta.faces.component.visit.VisitContext, jakarta.faces.component.visit.VisitCallback)
, as the tree visit can be terminated after the first component was resolved. This hint will be automatically added internally ifSearchExpressionHandler.resolveClientId(jakarta.faces.component.search.SearchExpressionContext, java.lang.String)
orSearchExpressionHandler.resolveComponent(jakarta.faces.component.search.SearchExpressionContext, java.lang.String, jakarta.faces.component.ContextCallback)
is used.- Since:
- 2.3
-
RESOLVE_CLIENT_SIDE
Hint that indicates that a keyword can be resolved later and will just be returned as passthrough, if supported by the keyword. For example: The AJAX client- and server-side is able to handle @all or @form. So it's not necessary at all to resolve them to their clientId's on the server side.
- Since:
- 2.3
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-