Writing a custom EL resolver
EL flexibility can be tested by extending it with custom implicit variables, properties, and method calls. This is possible if we extend the
PropertyResolver class, or even better, the
ELResolver class that give us flexibility to reuse the same implementation for different tasks. The following are three simple steps to add custom implicit variables:
- Create your own class that extends the
- Implement the inherited abstract methods.
- Add the
Next, you will see how to add a custom implicit variable by extending EL based on these steps. In this example, you want to retrieve a collection that contains the ATP singles rankings using EL directly in your ...