public abstract void invokeOnComponent(SearchExpressionContext searchExpressionContext, UIComponent previous, String expression, ContextCallback topCallback);
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
/** * <p class="changed_added_2_3">Resolves multiple {@link UIComponent}s for the given * expression. For each resolved component, the {@link ContextCallback} will be invoked. * * This method is the most essential method in the API. * It implements the algorithm which handles the recursion of the keywords and id's. * </p> * * @param searchExpressionContext the {@link SearchExpressionContext} * @param expression the search expression * @param callback the callback for the resolved component * * @throws FacesException if the expression is not valid. * * @since 2.3 */ public void invokeOnComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { invokeOnComponent(searchExpressionContext, searchExpressionContext.getSource(), expression, callback); }
@Override public void resolveComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { if (expression != null) { expression = expression.trim(); } addHint(searchExpressionContext, SearchExpressionHint.RESOLVE_SINGLE_COMPONENT); FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentCallback internalCallback = new ResolveComponentCallback(callback); handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\".");
throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\".");
throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\".");
@Override public void resolveComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { if (expression != null) { expression = expression.trim(); } addHint(searchExpressionContext, SearchExpressionHint.RESOLVE_SINGLE_COMPONENT); FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentCallback internalCallback = new ResolveComponentCallback(callback); handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
@Override public void resolveComponents(SearchExpressionContext searchExpressionContext, String expressions, ContextCallback callback) { if (expressions != null) { expressions = expressions.trim(); } FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentsCallback internalCallback = new ResolveComponentsCallback(callback); if (expressions != null) { for (String expression : handler.splitExpressions(facesContext, expressions)) { handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); } } if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expressions \"" + expressions + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
@Override public void resolveComponent(SearchExpressionContext searchExpressionContext, String expression, ContextCallback callback) { if (expression != null) { expression = expression.trim(); } addHint(searchExpressionContext, SearchExpressionHint.RESOLVE_SINGLE_COMPONENT); FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentCallback internalCallback = new ResolveComponentCallback(callback); handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expression \"" + expression + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
@Override public void resolveComponents(SearchExpressionContext searchExpressionContext, String expressions, ContextCallback callback) { if (expressions != null) { expressions = expressions.trim(); } FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentsCallback internalCallback = new ResolveComponentsCallback(callback); if (expressions != null) { for (String expression : handler.splitExpressions(facesContext, expressions)) { handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); } } if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expressions \"" + expressions + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
@Override public void resolveComponents(SearchExpressionContext searchExpressionContext, String expressions, ContextCallback callback) { if (expressions != null) { expressions = expressions.trim(); } FacesContext facesContext = searchExpressionContext.getFacesContext(); SearchExpressionHandler handler = facesContext.getApplication().getSearchExpressionHandler(); ResolveComponentsCallback internalCallback = new ResolveComponentsCallback(callback); if (expressions != null) { for (String expression : handler.splitExpressions(facesContext, expressions)) { handler.invokeOnComponent(searchExpressionContext, expression, internalCallback); } } if (!internalCallback.isInvoked() && !isHintSet(searchExpressionContext, SearchExpressionHint.IGNORE_NO_RESULT)) { throw new ComponentNotFoundException("Cannot find component for expressions \"" + expressions + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\"."); } }
throw new ComponentNotFoundException("Cannot find component for expressions \"" + expressions + "\" referenced from \"" + searchExpressionContext.getSource().getClientId(facesContext) + "\".");