I am trying to create a datatable using JSF primefaces. I know there is a tag called datatable but am really unclear on how to use it. As in I can’t picture its relationship with the bean. My table should be ID, Status, Details. Any idea how to do this or where to go for it?
oh forgot to add that the number of rows will depend on returned from resultset from database.
Thanks,
I am trying to create a datatable using JSF primefaces. I know there is
Share
You need to convert your result set into the
Listof entity (for exampleList<Book>) and then set it as Bean ‘s property,and use following code in XHTML
Book POJO
Managed Bean
See Also