Find in backing bean which commandLink is clicked
Hi,
I have a form with several commandLink buttons in there that are binded to that same method in the backing bean. How do I find out in the backing bean which button is clicked.
Thanks
Hi,
I have a form with several commandLink buttons in there that are binded to that same method in the backing bean. How do I find out in the backing bean which button is clicked.
Thanks
3 ways comes to mind:
1) Use actionListener and get the element ID by ActionEvent.
2) Use actionListener and f:attribute with a simple identifier and get it by ActionEvent.
3) Crawl through RequestParameterMap to find the element ID.