[seam-commits] Seam SVN: r15352 - in branches/enterprise/WFK-2_1/jboss-seam-gen/dist: src and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Nov 5 16:41:17 EST 2012


Author: manaRH
Date: 2012-11-05 16:41:17 -0500 (Mon, 05 Nov 2012)
New Revision: 15352

Modified:
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/resources/WEB-INF/web.xml
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormAction.java
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormActionBean.java
Log:
rolled back of moved bean validation annotation and disabled default BeanValidator in web.xml

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/resources/WEB-INF/web.xml
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/resources/WEB-INF/web.xml	2012-11-05 21:41:07 UTC (rev 15351)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/resources/WEB-INF/web.xml	2012-11-05 21:41:17 UTC (rev 15352)
@@ -66,6 +66,12 @@
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
    </context-param>
+   
+   <!--  disabling Bean validation  -->
+   <context-param>
+      <param-name>javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR</param-name>
+      <param-value>true</param-value>
+   </context-param>
 
    <servlet>
       <servlet-name>Faces Servlet</servlet-name>

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormAction.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormAction.java	2012-11-05 21:41:07 UTC (rev 15351)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormAction.java	2012-11-05 21:41:17 UTC (rev 15352)
@@ -1,13 +1,11 @@
 package @actionPackage@;
 
 import javax.ejb.Local;
-import javax.validation.constraints.Size;
 
 @Local
 public interface @interfaceName@
 {
     public void @methodName@();
-    @Size(max = 10)
     public String getValue();
     public void setValue(String value);
     public void destroy();

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormActionBean.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormActionBean.java	2012-11-05 21:41:07 UTC (rev 15351)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/FormActionBean.java	2012-11-05 21:41:17 UTC (rev 15352)
@@ -7,6 +7,7 @@
 import org.jboss.seam.annotations.Logger;
 import org.jboss.seam.log.Log;
 import org.jboss.seam.international.StatusMessages;
+import javax.validation.constraints.Size;
 
 @Stateful
 @Name("@componentName@")
@@ -26,7 +27,7 @@
     }
 
     // add additional action methods
-
+    @Size(max = 10)
     public String getValue()
     {
         return value;



More information about the seam-commits mailing list