You need to sign in to do that
Don't have an account?
ashish jadhav 9
How can I display list/set/map values on VF page? & how to iterate those values?
Please guide how to display collection items on vf page with iteration. Also while developing this what things I must remember?
Apex: VF:
All Answers
You can iterate them using <apex:repeat> tag in vf page.
Refer this link :
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_maps_lists.htm
Thanks,
Dhanya
Apex:
VF:
Sample code for Map
Apex:
VF:
Make changes to suit your needs.
mark it as Best Answer, if this solves your problem.
Apex: VF:
Set<String> will work, Set<Account> seems not to be working.
To populate Set from DB, you can use this:
variablename = new Set<Account>([Select id,name,phoen From Account LIMIT 10]);