rowEdit event

UI Components for JSF
Post Reply
srigold727
Posts: 4
Joined: 08 Apr 2015, 23:23

12 Oct 2016, 01:02

Hi Friends,

I have datatable and rowedit event.

xhtml code

Code: Select all

<p:ajax event="rowEdit" listener="#{controller.onRowEdit}" update="@this" />
And backing bean code

Code: Select all

 public void onRowEdit(RowEditEvent event) {
}
I would like to validate if all data is filled correctly.

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.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests