Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
ResultSetDataModel and jsf ig:gridView
posted

Hi,

If i want to directly get a JDBC result set and give it to ig:gridView to render the data.

What should i give in the jsp/xhtml page for the column names?

For eg:

<ig:gridView  dataSource=" < binding to result set data model>"

<ig:column >

<h:outputText value="#{DATA_ROW.<column name ?>}"

</ig:column>

 

My question is what goes after DATA_ROW. is it column name ?

 

Thanks

Jansun

 

Parents
No Data
Reply
  • 1324
    posted

    Hello Jansun,

    As you are working with ResultSetDatamodel and I hope following is the way you are working with:

    [Table in DataBase] ---> [JDBC]-->result set--->ResultSetDataModel--->assign to gris as datasource

    Now, for column name for grid, you need to put the fields (table column in database) as follows:

    ..<DATA_ROW.firstName>.. Where firstName is the column in the table in database.

    Hope you get the idea..

    Roshan

Children