index.xhtml :
ui:repeat value="#{produtoService.listaProdutos}" var="prod"
Note: I know that the tags are missing. But what does this code doing ('' assuming the tags are closed properly)? "
index.xhtml :
ui:repeat value="#{produtoService.listaProdutos}" var="prod"
Note: I know that the tags are missing. But what does this code doing ('' assuming the tags are closed properly)? "
ui:repeat
is a form of loop while
, more specifically foreach
.
In your specific example, it can be interpreted as: For each item of listaProdutos
, place the current item in the variable prod
and run the code up to </ui:repeat>