myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sobr...@apache.org
Subject svn commit: r1434361 - /myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java
Date Wed, 16 Jan 2013 20:18:43 GMT
Author: sobryan
Date: Wed Jan 16 20:18:43 2013
New Revision: 1434361

URL: http://svn.apache.org/viewvc?rev=1434361&view=rev
Log:
TRINIDAD-2353: ListView stamp state does not include rows.

* Thanks for the patch Venkata

Modified:
    myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java

Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java?rev=1434361&r1=1434360&r2=1434361&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java
(original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java-templates/org/apache/myfaces/trinidad/component/UIXListViewTemplate.java
Wed Jan 16 20:18:43 2013
@@ -141,7 +141,7 @@ public abstract class UIXListViewTemplat
   @Override
   Object __getMyStampState()
   {
-    Object[] state = new Object[3];
+    Object[] state = new Object[5];
     state[0] = super.__getMyStampState();
 
     // Use "hidden" property keys to allow the row key sets to be retrieved without the
@@ -154,6 +154,9 @@ public abstract class UIXListViewTemplat
     state[1] = selectedRowKeys;
     state[2] = disclosedRowKeys;
 
+    state[3] = Integer.valueOf(getFirst());
+    state[4] = Integer.valueOf(getRows());
+    
     return state;
   }
 
@@ -169,6 +172,8 @@ public abstract class UIXListViewTemplat
     super.__setMyStampState(state[0]);
     setSelectedRowKeys((RowKeySet) state[1]);
     setGroupDisclosedRowKeys((RowKeySet) state[2]);
+    setFirst(((Integer) state[3]).intValue());
+    setRows(((Integer) state[4]).intValue());
   }
 
   @Override



Mime
View raw message