I have a table and use actionListener to perform delete action see following image.
right now i am using event.getComponets() to get value that set from f:param tag. however, in this way, i have to hard code component id in to backing bean. looks like not a good approach. it there a better way to passing value from UI when there is a list of action buttons in table.
final UIParameter parm = (UIParameter) event.getComponent().findComponent(EDIT_SITE_ID_PARM); return (Integer)parm.getValue();


You can use a4j:actionParam name=”..” value=”..”, it works just like f:param but will also do the assignment to bean property automatically. Another option is to use f:setPropertyActionListener.