Author: chris.laprun(a)jboss.com
Date: 2012-01-27 10:43:30 -0500 (Fri, 27 Jan 2012)
New Revision: 8315
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/validator/UsernameValidator.java
Log:
- Removed Serializable and added default no-args constructor.
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/validator/UsernameValidator.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/validator/UsernameValidator.java 2012-01-27
01:23:12 UTC (rev 8314)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/validator/UsernameValidator.java 2012-01-27
15:43:30 UTC (rev 8315)
@@ -21,8 +21,6 @@
import org.exoplatform.web.application.CompoundApplicationMessage;
import org.exoplatform.webui.form.UIFormInput;
-import java.io.Serializable;
-
/**
* Validate username whether the value is only alpha lower, digit, dot and underscore
with first, last character is
* alpha lower or digit and cannot contain consecutive underscore, dot or both.
@@ -32,11 +30,16 @@
*/
@Serialized
-public class UsernameValidator extends MultipleConditionsValidator implements
Serializable
+public class UsernameValidator extends MultipleConditionsValidator
{
private Integer min = 3;
private Integer max = 30;
+ // required by @Serialized
+ public UsernameValidator()
+ {
+ }
+
public UsernameValidator(Integer min, Integer max)
{
this.min = min;
Show replies by date