I have a set named "voted" in my controller and I want to use that set on my visualforce to check if the user already voted on the idea.
public Set<String> voted = new Set<String>();
I used the voted for assigning the styleclass for the commandlink but it's not working.
<apex:commandLink styleClass="{!IF(voted.contains(i.Id+'-'+u.id+'-Down'),light-blue-link,light-gray-link)}" action="{!downVote}" reRender="forum, messages" status="loading">