10

JSF: commandLink and datatable a small nightmare

 3 years ago
source link: https://marco.dev/2007/06/26/jsf-commandlink-and-datatable-a-small-nightmare/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

java-version.com: What's new in Java 16? 15? Keep up to date!

JSF: commandLink and datatable a small nightmare

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:

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

Author

Marco Molteni

Marco Molteni Blog


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK