I have a set of data in array list form that I would like to display each food based on the menu category, but I cannot check with the logical operator eq
in ELParser, please help me out of this
<ui:repeat var="menu" value="#{eventBean.menuList}">
<li><ol><h5>#{menu}</h5></ol></li>
<ui:repeat var="food" value="#{eventBean.projectDetail.foodList}">
<li>
<ui:fragment ></ui:fragment>
<ol><h:outputText rendered="#{food.menu eq menu}">#{food.name}</h:outputText></ol>
</li>
</ui:repeat>
</ui:repeat>
the menu can be display but the inner loop are not displaying any food. I had tried #{food.menu eq #{menu}}
but will get exception on ELParser
EDIT 1:
I just realized that <h:outputText>#{food.name}</h:outputText>
are basically cannot display the value, I must do <h:outputText value="#{food.name}"></h:outputText>
in order to display value, my mistake.
Now I am searching for if condition to filter