Package org.primefaces.expression.impl
Class ObserverExpressionResolver
java.lang.Object
org.primefaces.expression.impl.ObserverExpressionResolver
- All Implemented Interfaces:
ClientIdSearchExpressionResolver,SearchExpressionResolver
public class ObserverExpressionResolver
extends Object
implements SearchExpressionResolver, ClientIdSearchExpressionResolver
SearchExpressionResolver for the event/observer handling. This is only supported in the AJAX 'update' attribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, Set<SearchExpressionHint> hints) Resolves one or multiple clientId's for the given expression string.javax.faces.component.UIComponentresolveComponent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, Set<SearchExpressionHint> hints) Resolves aUIComponentfor the last or sourceUIComponentand for the given expression string.
-
Constructor Details
-
ObserverExpressionResolver
public ObserverExpressionResolver()
-
-
Method Details
-
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:SearchExpressionResolverResolves aUIComponentfor the last or sourceUIComponentand for the given expression string.- Specified by:
resolveComponentin 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
UIComponentornull.
-
resolveClientIds
public String resolveClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, javax.faces.component.UIComponent last, String expression, Set<SearchExpressionHint> hints) Description copied from interface:ClientIdSearchExpressionResolverResolves one or multiple clientId's for the given expression string.- Specified by:
resolveClientIdsin interfaceClientIdSearchExpressionResolver- 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 clientId's or
null.
-