Author: nbelaevski
Date: 2007-06-25 20:27:07 -0400 (Mon, 25 Jun 2007)
New Revision: 280
Modified:
trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java
Log:
RF-40 fixed
Modified: trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java
===================================================================
--- trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java 2007-06-25
13:28:31 UTC (rev 279)
+++ trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIRepeat.java 2007-06-26
00:27:07 UTC (rev 280)
@@ -30,8 +30,10 @@
import javax.faces.model.ArrayDataModel;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
+import javax.faces.model.ResultDataModel;
import javax.faces.model.ResultSetDataModel;
import javax.faces.model.ScalarDataModel;
+import javax.servlet.jsp.jstl.sql.Result;
/**
* @author shura
*
@@ -96,8 +98,8 @@
model = new SequenceDataModel(new ArrayDataModel((Object[]) current));
} else if (current instanceof ResultSet) {
model = new SequenceDataModel(new ResultSetDataModel((ResultSet) current));
-// } else if (current instanceof Result) {
-// model = new ResultDataModel((Result) current);
+ } else if (current instanceof Result) {
+ model = new SequenceDataModel(new ResultDataModel((Result) current));
} else {
model = new SequenceDataModel(new ScalarDataModel(current));
}
Show replies by date