incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r470633 - in /incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces: GenerateComponentsMojo.java GenerateJspTaglibsMojo.java
Date Fri, 03 Nov 2006 02:03:09 GMT
Author: matzew
Date: Thu Nov  2 18:03:08 2006
New Revision: 470633

URL: http://svn.apache.org/viewvc?view=rev&rev=470633
Log:
support of numbers on componets (default values) and tags...

Modified:
    incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
    incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java

Modified: incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java?view=diff&rev=470633&r1=470632&r2=470633
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
(original)
+++ incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
Thu Nov  2 18:03:08 2006
@@ -667,6 +667,17 @@
     {
       return "new Float(" + value + ")";
     }
+    else if ("Number".equals(className))
+    {
+      if(value.indexOf(".") == -1)
+      {
+        return "new Integer(" + value + ")";
+      }
+      else
+      {
+        return "new Double(" + value + ")";
+      }
+    }
     else
     {
       throw new IllegalStateException("property-class " + className + " not supported for
default-value");

Modified: incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java?view=diff&rev=470633&r1=470632&r2=470633
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
(original)
+++ incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
Thu Nov  2 18:03:08 2006
@@ -1665,6 +1665,7 @@
       String boxedClass = Util.getBoxedClass(propClass);
       String setProperty = "setProperty";
       if (!boxedClass.equals(propClass) ||
+          "java.lang.Number".equals(propFullClass) ||
            "java.util.Date".equals(propFullClass) ||
           (boxedClass.indexOf("[]") != -1))
       {



Mime
View raw message