© Michael Müller 2018
Michael MüllerPractical JSF in Java EE 8 https://doi.org/10.1007/978-1-4842-3030-5_23

23. Repetitive Structures

Michael Müller1 
(1)
Brühl, Nordrhein-Westfalen, Germany
 
So far, we’ve used three different tags for repetitive structures :
  • c:forEach

  • ui:repeat

  • h:dataTable

In this chapter we’ll discuss the differences and coverage among these.

The first two elements are used to repeat everything between the opening and closing tags. As a developer, it’s up to you to choose the right structure within the HTML. Without a special structure, you may simply concatenate strings to a paragraph. Or you may nest it within a table tag and repeat the rows to render a table. Or you might create a list using the HTML <ul> or <ol> elements with ...

Get Practical JSF in Java EE 8: Web Applications ​in Java for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.