I have datatable and rowedit event.
xhtml code
Code: Select all
<p:ajax event="rowEdit" listener="#{controller.onRowEdit}" update="@this" />
Code: Select all
public void onRowEdit(RowEditEvent event) {
}
Question - if validation failed i would like to stay in edit mode, so that user can correct errors and show message.
if no validation errors - take changed values and show in read only mode (This is default function of row edit now).
Please help me to resolve this issue.