Below example show a workaround to pass a single parameter from ELexpression into a managed bean.
1. Create a getter method in the managed bean that returns a Map. In this method return an anonymous subclass of hashmap. Override the get method use the parameter passed from the EL expression.
2. Pass the parameter from the EL expression using the box syntax.
3. You can also access bindings to pass a parameter with a similar syntax.
Really nice workaround... Better than any other post
ReplyDelete