Validation with Class-level constraints on rowEditor?

UI Components for JSF
Post Reply
aroeber
Posts: 9
Joined: 21 Aug 2014, 08:00

18 Feb 2017, 18:07

Hello,

is there a way to do JSF validation with class-level constraints (JSR303 or something comparable) on the datatable rowEditor component to do some business check on the whole bean?

I am already using Omnifaces o:validateBean and give JSF 2.3 a try with f:validateWholeBean. It is working on simple forms but seems to fail in a datatable with rowEditor - e. g. with the error message "f:validateWholeBean must be nested directly in an UIForm".

Using onRowEdit to do some business validation is possible but at the time of the event the JSF validation phase is over and (form) data is already accepted (rowEditor is showing the pencil instead of accept and cancel symbols).

Any ideas? Any experiences?

Best regards,
Axel

PF 6.0.12, JSF 2.2/2.3

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests