[jboss-cvs] JBossAS SVN: r100512 - trunk/testsuite/src/main/org/jboss/test/jsf/webapp.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Feb 5 09:36:19 EST 2010


Author: stan.silvert at jboss.com
Date: 2010-02-05 09:36:19 -0500 (Fri, 05 Feb 2010)
New Revision: 100512

Added:
   trunk/testsuite/src/main/org/jboss/test/jsf/webapp/ValidatedBean.java
Log:
JBAS-7660 Looks like ValidatedBean.java vanished from SVN.  Adding it back.

Added: trunk/testsuite/src/main/org/jboss/test/jsf/webapp/ValidatedBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jsf/webapp/ValidatedBean.java	                        (rev 0)
+++ trunk/testsuite/src/main/org/jboss/test/jsf/webapp/ValidatedBean.java	2010-02-05 14:36:19 UTC (rev 100512)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.jsf.webapp;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.validation.constraints.Size;
+
+/** 
+ * Simple Managed Bean that uses the Bean Validation framework.
+ *
+ * @author Stan.Silvert at jboss.org
+ */
+ at ManagedBean(name="validatedBean")
+ at SessionScoped
+public class ValidatedBean
+{
+   @Size(min=2)
+   private String name;
+
+   public String getName()
+   {
+      return name;
+   }
+
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+
+}




More information about the jboss-cvs-commits mailing list