[seam-commits] Seam SVN: r9272 - in trunk/examples/ui: view and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Oct 12 13:00:38 EDT 2008


Author: danielc.roth
Date: 2008-10-12 13:00:37 -0400 (Sun, 12 Oct 2008)
New Revision: 9272

Modified:
   trunk/examples/ui/src/org/jboss/seam/example/ui/EqualityValidatorBean.java
   trunk/examples/ui/view/equalityValidator.xhtml
Log:
JBSEAM-2809

Modified: trunk/examples/ui/src/org/jboss/seam/example/ui/EqualityValidatorBean.java
===================================================================
--- trunk/examples/ui/src/org/jboss/seam/example/ui/EqualityValidatorBean.java	2008-10-12 14:05:46 UTC (rev 9271)
+++ trunk/examples/ui/src/org/jboss/seam/example/ui/EqualityValidatorBean.java	2008-10-12 17:00:37 UTC (rev 9272)
@@ -12,48 +12,28 @@
 @Scope(ScopeType.SESSION)
 public class EqualityValidatorBean
 {
-   
+
    private String name;
-   
-   private String nameVerification;
-   
+
    @In
    private StatusMessages statusMessages;
-   
+
    public String getName()
    {
       return name;
    }
-   
+
    public void setName(String name)
    {
       this.name = name;
    }
-   
-   public String getNameVerification()
-   {
-      return nameVerification;
-   }
 
-   public void setNameVerification(String nameVerification)
-   {
-      this.nameVerification = nameVerification;
-   }
-   
    public void check()
    {
       if (Strings.isEmpty(name))
       {
          statusMessages.addToControl("name", Severity.WARN, "Enter a name!");
       }
-      if (Strings.isEmpty(nameVerification))
-      {
-         statusMessages.addToControl("nameVerification", Severity.WARN, "Enter a name verification!");
-      }
-      if (name != null && nameVerification != null && !name.equals(nameVerification))
-      {
-         statusMessages.addToControl("nameVerification", Severity.WARN, "Name and Name Verification not equal (should have been caught by equality validator!)");
-      }
    }
-   
+
 }

Modified: trunk/examples/ui/view/equalityValidator.xhtml
===================================================================
--- trunk/examples/ui/view/equalityValidator.xhtml	2008-10-12 14:05:46 UTC (rev 9271)
+++ trunk/examples/ui/view/equalityValidator.xhtml	2008-10-12 17:00:37 UTC (rev 9272)
@@ -14,7 +14,7 @@
 				<h:inputText id="name" value="#{equalityValidatorBean.name}" />
 				<h:message for="name" />
 				<s:label for="nameVerification">Name Verification</s:label>
-				<h:inputText id="nameVerification" value="#{equalityValidatorBean.nameVerification}">
+				<h:inputText id="nameVerification" value=" ">
 					<s:validateEquality for="name" />
 				</h:inputText>
 				<h:message for="nameVerification" />




More information about the seam-commits mailing list