I have commonly come across the requirement to pass parameters to the managed bean method on a button click. The challenge we normally face here is that, the methods attached to the "
action" or "
actionListener" have fixed signatures that cannot be changed.
Thus, we have to leverage the "
<f:attribute>" tag alongwith a "
actionListener"
Hope you find this helpful! Please share your feedback below.
CaptiveCode
No comments:
Post a Comment