custom constraint validation with primefaces

UI Components for JSF
Post Reply
samwun9988
Posts: 69
Joined: 22 Jan 2011, 11:04

05 Mar 2011, 02:09

Hello,

Does anyone know how to use Custom Constraint Validation with Primefaces?

Thanks a lot
Sam
Primefaces 2.2.1, JBOSS 6.0.0.Final, JDK1.6

samwun9988
Posts: 69
Joined: 22 Jan 2011, 11:04

05 Mar 2011, 02:26

I am wondering how to apply the following JSR303 with Primefaces ajax comandbuton,
public class Customer
{
@Size(min=2, max=50, message= "{customerNameError} ")
private String name;
// getters and setters
...
}
Thanks a lot
Sam
Primefaces 2.2.1, JBOSS 6.0.0.Final, JDK1.6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests