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

[205 byte] By [whitesox12a] at [2007-11-27 11:17:48]
# 1

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.

BalusCa at 2007-7-29 14:27:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...