incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r416038 - /incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java
Date Wed, 21 Jun 2006 17:08:13 GMT
Author: awiner
Date: Wed Jun 21 10:08:13 2006
New Revision: 416038

URL: http://svn.apache.org/viewvc?rev=416038&view=rev
Log:
[ADFFACES-22]: Allow parameter values to take a wider range of types

Modified:
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java

Modified: incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java?rev=416038&r1=416037&r2=416038&view=diff
==============================================================================
--- incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java
(original)
+++ incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/uinode/FireActionBoundValue.java
Wed Jun 21 10:08:13 2006
@@ -98,10 +98,14 @@
           
           if (kid instanceof UIParameter)
           {
-            Parameter p = new Parameter();
-            p.setKey(((UIParameter)kid).getName());
-            p.setValue((String)((UIParameter)kid).getValue());
-            params.add(p);
+            Object value = ((UIParameter)kid).getValue();
+            if (value != null)
+            {
+              Parameter p = new Parameter();
+              p.setKey(((UIParameter)kid).getName());
+              p.setValue(value.toString());
+              params.add(p);
+            }
           }
         }
 



Mime
View raw message