Can i write this:
<ui:repeat var="element" value="mybean.list">
<h:outputLink styleClass="#{myBean.otherList.contains(element)?'someclass':'someotherclass'}" />
</ui:repeat>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think all you need is to wrap the
myBean.otherList.contains(element)with another brackets () , like this(myBean.otherList.contains(element))I do the same in several places
here an example
here is how your should look like
again , not sure about the extra brackets , but I use them in my pages
in order to check you code use development tools of you browser or firebug and just click on the cell to see it style class