Skip to content

Instantly share code, notes, and snippets.

@bleathem
Last active December 22, 2015 20:29
Show Gist options
  • Save bleathem/6526617 to your computer and use it in GitHub Desktop.
Save bleathem/6526617 to your computer and use it in GitHub Desktop.
AutocompleteRendererBase.java#L100
try {
// String value = getInputValue(facesContext, component);
itemsObject = autocompleteMethod.invoke(facesContext.getELContext(), new Object[] { facesContext, component, value });
} catch (MethodNotFoundException e) {
try {
itemsObject = autocompleteMethod.invoke(facesContext.getELContext(), new Object[] { value });
} catch (MethodNotFoundException e) {
ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory();
autocompleteMethod = expressionFactory.createMethodExpression(facesContext.getELContext(),
autocompleteMethod.getExpressionString(), Object.class, new Class[] { String.class });
itemsObject = autocompleteMethod.invoke(facesContext.getELContext(), new Object[] { value });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment