Tuesday, 13 September 2011

PrimeFaces DataTable on Glassfish 3.1

Further to my earlier post about Glassfish 3.1 and re-deploy errors, another (minor) problem has also been found with the JavaEE course, this time with JSF pages.

After using the <p:dataTable> from the excellent PrimeFaces library, you will probably find that the boring plain Data Table is still being displayed.

This can fixed by adding a <h:head> and </h:head> before the <h:body> table. You can leave the head tag empty for now, but you would add in all of the usual HTML elements that are needed on any web page's head tag, such as <title> and any meta tags.

No comments:

Post a Comment