What is this code possibly doing?

Asked

Viewed 52 times

1

index.xhtml :

 ui:repeat value="#{produtoService.listaProdutos}" var="prod" 

Note: I know I have to close the tags. But that is, what this code is doing ('assuming' that the tags are closed correctly)?

1 answer

0

ui:repeat is a form of bond while, more specifically foreach.

In this specific example, it can be interpreted as: For each item of listaProdutos, place the current item in the variable prod and execute the code until the </ui:repeat>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.