Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: Add method getMethodReference for MethodExpression parameter #279
In our project we extended OmniFaces
I'm not sure that given implementation is optimal. However it works quite good for us.
About real world use case: we use this code to check if method has custom security annotation, similar to standard Apache Shiro's RequiresPermissions. If such annotation present in JSF bean for target method behind MethodExpression and user don't have required permissions, than we set
I verified your implementation and found one issue in it. Method expression can be attached to UI param and passed to some reusable template. In template it wrapped to
In given scenario
In rest cases method works good.
This build gives me next error on methods with parameters:
As you can see somehow it is searching method without parameters when actually requested parametrized one.
I don't know if it is true for EL 2.2 also.