Hi Ajaay,
No, not all Collection types are wrapped in a
DataModel automatically. According to the
JSF 1.2 specification, only
java.util.List or array of
Objects are autmatically wrapped. I just read that part of the spec, and it actually says:
The current value identified by the value property is normally of type DataModel.
However, a DataModel wrapper instance must automatically be provided by the JSF
implementation if the current value is of one of the following types:
■ java.util.List
■ Array of java.util.Object
■ java.sql.ResultSet (which therefore also supports javax.sql.RowSet)
■ javax.servlet.jsp.jstl.sql.Result
■ Any other Java object is wrapped by a DataModel instance with a single row.
So it should be possible to use a ResultSet, as you tried. However, I never tried this and I think it isn't common use to do so.
Best regards,
Bart