Hi,
I am using <ig:gridView> tag to populate data (data is in an ArrayList, arraylist of an object) in a Facelet. When I am passing the dataSource as the name of the list I am getting an error as:
"The following error occured in getParameterisedBoundProperty: java.lang.IllegalArgumentException: Cannot convert [obj1,obj2,obj3] of type class java.util.ArrayList to class javax.faces.model.DataModel"
Do I need to add the list to the DataModel object or FacesServlet should automatically convert it?
The exapmles available at the infragistics site pass list only. Can you please tell what wrong I am doing.
Thank you
Hi Taz,Thanks for the response.I have attached a sample project (regarding Web Grid data source issue) here as well as in the development forum.This project is developed in IBM RAD as faces projectI have removed the jar files from the lib folder. Please add the jars and test it.
el-api.jarel-ri.jaricu4j_3_4_1.jarinfragistics-3dengine.jarinfragistics-netadvantage.jarinfragistics-shared.jarinfragistics-webgrid.jarinfragistics-webinput.jarinfragistics-webmenu.jarjsf-facelets.jarjsf-ibm.jar
Regards,Kaushal
Hey Kaushal,
The grid should work if your data source is an ArrayList. If you can please submit this issue with our developer support, we will be able to look further into the issue and fix this. If you have a sample that demonstrates the problem, please attach that as well. From the link below, click on "Ask For Help".
http://ko.infragistics.com/gethelp
Thanks,
Taz.
Thanks for the response. But how examples availabe at infragistics website are working (there an ArrayList is only bounded to datasource, not DataModel) . Any idea?
Unfortunately I had the same problem. The only way I found around it is as you said, convert the list to a DataSource object. e.g. ListDataSource. I don't think you are doing anything wrong.