0
I need to count how many status equals '1'. I used this to count how many objects I had in the list and it worked. Now I can’t count only those who have status equal to 1.
<h:outputText value="#{fn:length(cur.listaProdutosManutencao)}" />
That’s what I used and it worked.
I tried this below to get the status and it didn’t work:
<h:outputText value="#{fn:length(cur.listaProdutosManutencao.status eq '1')}" />
I tried this one too, and it didn’t work:
<h:outputText value="#{fn:join(cur.listaProdutosManutencao.status, '1')}"
Can anyone help me? I would like to follow the first one I did.
can you provide more details? Post your Books with this you can create a method for this.
– LR10
Dude, listProductManutencao is a List<Product> of an object with string name and string status. Just that. How it would look?
– Filipe
Create a method that does this for you. Where you would check the status within a for would make it easier.
– LR10