Author: artdaw
Date: 2011-03-28 16:03:41 -0400 (Mon, 28 Mar 2011)
New Revision: 22325
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/PasswordValidationBean.java
Log:
RF-10819: clone() method is overridden
Modified:
branches/4.0.X/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/PasswordValidationBean.java
===================================================================
---
branches/4.0.X/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/PasswordValidationBean.java 2011-03-28
17:12:58 UTC (rev 22324)
+++
branches/4.0.X/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/PasswordValidationBean.java 2011-03-28
20:03:41 UTC (rev 22325)
@@ -1,16 +1,15 @@
package org.richfaces.demo.validation;
-import java.io.Serializable;
-
import javax.faces.application.FacesMessage;
+import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Size;
+import java.io.Serializable;
@ManagedBean
-@SessionScoped
+@ApplicationScoped
public class PasswordValidationBean implements Cloneable, Serializable{
/**
*
@@ -45,5 +44,11 @@
public String getConfirm() {
return confirm;
- }
+ }
+
+ @Override
+ public Object clone() throws CloneNotSupportedException {
+ return super.clone();
+ }
+
}
Show replies by date