| Using h:dataTable in JSF 2.0 |
The following examples illustrate some of the h:dataTable options that
are explained in the tutorial.
- Basics. The var and value attributes of h:dataTable, and the
nested h:column element.
- Headers and captions. f:facet with name = "header",
"caption", "footer", etc.
- CSS styles. styleClass, captionClass, headerClass,
footerClass, rowClasses, columnClasses.
- Ajax. Updating a table without reloading the entire page.
- Conditional output and editable cells.
Using the "rendered" attribute to conditionally output h:inputText or h:outputText,
thus making table cells editable by the user.
This code is from the coreservlets.com JSF 2.0 tutorial.
There is also a variety of other free
J2EE tutorials (servlets, JSP, JSF 2.0, PrimeFaces, Ajax [with jQuery], GWT, Spring, Hibernate, JPA,
SOAP-based and RESTful Web Services, Android development, Hadoop, & Java 6 and Java 7 programming)
as well as live instructor-led training courses on
the same J2EE topics (servlets, JSP, JSF 2.0, PrimeFaces, Ajax [with jQuery], GWT, Spring, Hibernate, JPA,
SOAP-based and RESTful Web Services, Android development, Hadoop & Java 6 and Java 7 programming).