incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r471667 - in /incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces: GenerateComponentsMojo.java GenerateJspTaglibsMojo.java
Date Mon, 06 Nov 2006 08:42:44 GMT
Author: matzew
Date: Mon Nov  6 00:42:43 2006
New Revision: 471667

URL: http://svn.apache.org/viewvc?view=rev&rev=471667
Log:
putting plugin changes to nov06_branch

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

Modified: incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java?view=diff&rev=471667&r1=471666&r2=471667
==============================================================================
--- incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
(original)
+++ incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
Mon Nov  6 00:42:43 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/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java?view=diff&rev=471667&r1=471666&r2=471667
==============================================================================
--- incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
(original)
+++ incubator/adffaces/branches/stable-06-nov/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateJspTaglibsMojo.java
Mon Nov  6 00:42:43 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