Author: konstantin.mishin
Date: 2007-10-26 08:56:48 -0400 (Fri, 26 Oct 2007)
New Revision: 3561
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
small fix
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-10-26
12:56:32 UTC (rev 3560)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-10-26
12:56:48 UTC (rev 3561)
@@ -592,7 +592,9 @@
if(parameters.containsKey(s_id)){
String options = (String)parameters.get(s_id);
grid.setScrollPos(options);
- grid.setFirst(Integer.parseInt(options.split(",")[1]));
+ if(options.length() > 0){
+ grid.setFirst(Integer.parseInt(options.split(",")[1]));
+ }
}