• cdi
  • components
  • contexts
  • converters
  • el
  • eventlisteners
  • exceptionhandlers
  • facesviews
  • filters
  • functions
  • managedbeans
  • push
  • resourcehandlers
  • scripts
  • servlets
  • taghandlers
  • utils
  • validators
  • viewhandlers
 - 
  • ExpressionInspector
  • FacesELResolver

Available since OmniFaces 1.4

This class contains methods that inspect expressions to reveal information about them.

Examples

Determine the bean instance and the property value behind a ValueExpression.

ValueExpression valueExpression = component.getValueExpression("value");
ValueReference valueReference = ExpressionInspector.getValueReference(context.getELContext(), valueExpression);
Object bean = methodReference.getBase();
Object property = methodReference.getProperty();

Determine the bean instance and the concrete getter Method behind a ValueExpression.

ValueExpression valueExpression = component.getValueExpression("value");
MethodReference methodReference = ExpressionInspector.getMethodReference(context.getELContext(), valueExpression);
Object bean = methodReference.getBase();
Method method = methodReference.getMethod();

Determine the bean instance and the concrete action Method behind a MethodExpression.

MethodExpression methodExpression = commandComponent.getActionExpression();
MethodReference methodReference = ExpressionInspector.getMethodReference(context.getELContext(), methodExpression);
Object bean = methodReference.getBase();
Method method = methodReference.getMethod();
Documentation & Sources