Many developers had problems using a commandLink in a column’s datatable.

Often when the user clicks on the link the backing bean method linked by the action is not called.

In the picture the first icon edits and the second delete the row …

Row of Datatable

According to Sun this is a feature and it will not be solved.

The most used workaround is to place the managed bean with the methods in the session scope 🙁

You can find a good explanation of the problem and an alternative solution here:

http://typo.ars-subtilior.com/articles/2007/02/07/jsf-datatable-and-commandlink