How to repeat output of text via simple for loop in Facelets without model?
问题 How to repeat output of some content in JSF using only standard tags (ui:, h: etc) ? In other words - how to do equivalent to PHP code below in JSF ? I immediately wanted to take advantage of ui:repeat , but it needs collection - I have only number. for ($i = 0; $i < 10; $i++) { echo "<div>content</div>"; } 回答1: Either use <c:forEach> instead (true, mixing JSTL with JSF is sometimes frowned upon, but this should not harm in your particular case because you seem to want to create the view