Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add name length validation to profile action bean
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Jul 17, 2012
1 parent 8dd37b2 commit 74be457
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zanata-war/src/main/java/org/zanata/action/ProfileAction.java
Expand Up @@ -23,6 +23,8 @@
import java.io.Serializable;

import org.hibernate.validator.Email;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotEmpty;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.In;
Expand Down Expand Up @@ -121,6 +123,8 @@ public void onCreate()
}
}

@NotEmpty
@Length(min = 2, max = 80)
public String getName()
{
return name;
Expand Down

0 comments on commit 74be457

Please sign in to comment.