myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r226967 - /myfaces/api/trunk/src/java/javax/faces/component/UIData.java
Date Tue, 02 Aug 2005 08:20:02 GMT
Author: mbr
Date: Tue Aug  2 01:19:57 2005
New Revision: 226967

URL: http://svn.apache.org/viewcvs?rev=226967&view=rev
Log:
replace cast to Integer with cast to Number for first and rows property 
to make complex el expressions work (#{2+2} results into a Long instance)

Modified:
    myfaces/api/trunk/src/java/javax/faces/component/UIData.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/UIData.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/UIData.java?rev=226967&r1=226966&r2=226967&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/UIData.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/UIData.java Tue Aug  2 01:19:57 2005
@@ -720,7 +720,7 @@
         if (_first != null)
             return _first.intValue();
         ValueBinding vb = getValueBinding("first");
-        Integer v = vb != null ? (Integer) vb.getValue(getFacesContext()) : null;
+        Number v = vb != null ? (Number) vb.getValue(getFacesContext()) : null;
         return v != null ? v.intValue() : DEFAULT_FIRST;
     }
 
@@ -729,7 +729,7 @@
         if (_rows != null)
             return _rows.intValue();
         ValueBinding vb = getValueBinding("rows");
-        Integer v = vb != null ? (Integer) vb.getValue(getFacesContext()) : null;
+        Number v = vb != null ? (Number) vb.getValue(getFacesContext()) : null;
         return v != null ? v.intValue() : DEFAULT_ROWS;
     }
 



Mime
View raw message