Skip to content

Commit

Permalink
JDF-122 updated regex and validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
rafabene committed Jan 18, 2013
1 parent 2177597 commit e573e26
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bin
/helloworld-jsp
README.html
CONTRIBUTING.html
RELEASE_PROCEDURE.html
.errai
helloworld-gwt/src/main/gwt-unitCache
helloworld-gwt/src/main/webapp/HelloWorldApp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25, message = "1-25 letters and spaces")
@Pattern(regexp = "[A-Za-z ]*", message = "Only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "{name_validation_message}")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "{name_validation_message}")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Member implements Serializable {

@NotNull
@Size(min = 1, max = 25)
@Pattern(regexp = "[A-Za-z ]*", message = "must contain only letters and spaces")
@Pattern(regexp = "[^0-9]*", message = "Must not contain numbers")
private String name;

@NotNull
Expand Down
28 changes: 24 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,19 @@
Application Platform or JBoss AS -->
<module>bean-validation</module>
<module>bmt</module>
<module>cdi-add-interceptor-binding</module>
<module>cdi-injection</module>
<module>cdi-portable-extension</module>
<module>cdi-veto</module>
<module>cluster-ha-singleton</module>
<module>deltaspike-authorization</module>
<module>deltaspike-beanbuilder</module>
<module>deltaspike-beanmanagerprovider</module>
<module>deltaspike-deactivatable</module>
<module>deltaspike-exception-handling</module>
<module>deltaspike-helloworld-jms</module>
<module>deltaspike-projectstage</module>
<module>ejb-asynchronous</module>
<module>ejb-in-ear</module>
<module>ejb-in-war</module>
<module>ejb-remote</module>
Expand All @@ -118,18 +129,23 @@
<module>helloworld-gwt</module>
<module>helloworld-html5</module>
<module>helloworld-jms</module>
<module>helloworld-rf</module>
<module>helloworld-mdb</module>
<module>helloworld-osgi</module>
<module>helloworld-rf</module>
<module>helloworld-rs</module>
<module>helloworld-singleton</module>
<module>helloworld-ws</module>
<module>hibernate3</module>
<module>hibernate4</module>
<module>inter-app</module>
<module>kitchensink</module>
<module>kitchensink-deltaspike</module>
<module>kitchensink-ear</module>
<module>kitchensink-html5-mobile</module>
<module>kitchensink-jsp</module>
<module>kitchensink-ml</module>
<module>kitchensink-ml</module>
<module>kitchensink-ml-ear</module>
<module>kitchensink-rf</module>
<module>log4j</module>
<module>logging-tools</module>
<module>mail</module>
Expand All @@ -139,14 +155,18 @@
<module>servlet-async</module>
<module>servlet-filterlistener</module>
<module>servlet-security</module>
<module>shopping-cart</module>
<module>tasks</module>
<module>tasks-jsf</module>
<module>temperature-converter</module>
<module>tasks-rs</module>
<module>temperature-converter</module>
<module>wicket-ear</module>
<module>wicket-war</module>
<module>xml-jaxp</module>
<module>wsat-simple</module>
<module>wsba-coordinator-completion-simple</module>
<module>wsba-participant-completion-simple</module>
<module>xml-dom4j</module>
<module>xml-jaxp</module>
</modules>
</profile>
<profile>
Expand Down

0 comments on commit e573e26

Please sign in to comment.