JSF: commandLink and datatable a small nightmare
Updated: 2007-06-26
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 …
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:
https://typo.ars-subtilior.com/articles/2007/02/07/jsf-datatable-and-commandlink