How can I define a validator for a DataTable? For example to force it at least have 1 row to submit?
How can I define a validator for a DataTable ? For example to force
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could try the following (not tested):
Bind your h:dataTable to a UIComponent in the backing bean:
In your backing bean define a
javax.faces.component.html.HtmlDataTable myTableIn the action method for the submit button: