Guest User

Untitled

a guest
Mar 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <apex:repeat var="list" value="{!tesList}">
  2. <input type="checkbox" style="display:{!IF(CONTAINS(anotherList, list['name']), '','none')}" value="{!list['name']}" />
  3. </apex:repeat>
  4.  
  5. <!-- JSTL sample -->
  6. <c:forEach var="list" items="${testList}">
  7. <c:if test="${fn:contains(anotherList, list.name)}">
  8. <input type="checkbox" value="${list.name}" />
  9. </c:if>
  10. </c:forEach>
  11.  
  12. testList = new List<String>{'NAME_A','NAME_B','NAME_C'};
  13.  
  14. <!-- The following output works good as if it where a string -->
  15. testList: {!testList}
  16.  
  17. <apex:variable var="list" value="{!''}{!testList}" />
  18.  
  19. NAME_A: {!IF(CONTAINS(list, 'NAME_A'),'OK','FALSE')} <br/>
  20. BLAAHH: {!IF(CONTAINS(list, 'BLAAHH'),'OK','FALSE')}
  21.  
  22. NAME_A: OK
  23. BLAAHH: FALSE
  24.  
  25. <apex:variable var="list" value="{!''}{!anotherList}" />
  26.  
  27. <apex:repeat var="list" value="{!tesList}">
  28. <input type="checkbox" style="display:{!IF(CONTAINS(anotherList, list['name']), '','none')}" value="{!list['name']}" />
  29. </apex:repeat>
Add Comment
Please, Sign In to add comment