I want to create a JSF table like this. But instead delete button in every row I want to place check box in every row in the first column because I want to delete more than one row simultaneously. How I can create such a row and delete button which deletes every selected row? And can this be done with AJAX? I don’t want to refresh the page.
Best wishes
Since you want an example that uses
f:ajaxand since other answer uses the given example in How to use JSF’s h:selectBooleanCheckbox with h:dataTable to create one object per row? which is aimed for jsf 1 (and not 2) you can modify the delete button into something like this (make use of thef:ajax)and change
public void submit()intopublic void submit(AjaxBehaviorEvent ev)