Package org.primefaces.expression.impl
Class IdExpressionResolver
- java.lang.Object
-
- org.primefaces.expression.impl.IdExpressionResolver
-
- All Implemented Interfaces:
MultiSearchExpressionResolver
,SearchExpressionResolver
public class IdExpressionResolver extends Object implements SearchExpressionResolver, MultiSearchExpressionResolver
-
-
Constructor Summary
Constructors Constructor Description IdExpressionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
extractId(String expression)
javax.faces.component.UIComponent
resolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, Set<SearchExpressionHint> hints)
Resolves aUIComponent
for the last or sourceUIComponent
and for the given expression string.void
resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, List<javax.faces.component.UIComponent> components, Set<SearchExpressionHint> hints)
Resolves a list ofUIComponent
for the last or sourceUIComponent
and for the given expression string.
-
-
-
Method Detail
-
resolveComponent
public javax.faces.component.UIComponent resolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, Set<SearchExpressionHint> hints)
Description copied from interface:SearchExpressionResolver
Resolves aUIComponent
for the last or sourceUIComponent
and for the given expression string.- Specified by:
resolveComponent
in interfaceSearchExpressionResolver
- Parameters:
context
- TheFacesContext
.source
- The source component. E.g. a button.last
- The last resolved component in the chain. If it's not a nested expression, it's the same as the source component.expression
- The search expression.hints
- The options.- Returns:
- The resolved
UIComponent
ornull
.
-
resolveComponents
public void resolveComponents(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, List<javax.faces.component.UIComponent> components, Set<SearchExpressionHint> hints)
Description copied from interface:MultiSearchExpressionResolver
Resolves a list ofUIComponent
for the last or sourceUIComponent
and for the given expression string.- Specified by:
resolveComponents
in interfaceMultiSearchExpressionResolver
- Parameters:
context
- TheFacesContext
.source
- The source component. E.g. a button.last
- The last resolved component in the chain. If it's not a nested expression, it's the same as the source component.expression
- The search expression.components
- The component list to add the resolvedUIComponent
s.hints
- The hints.
-
-