You need to sign in to do that
Don't have an account?
RossK
Maps with Collections - Collections are not correct on vf page
Hi
I am experiencing unexpected behavoir with a map that contains sets of strings. The controller is below:
The VF page is here:
{hey=common.apex.runtime.impl.SetValue@d08}
instead of {hey='ho'} which is what is displayed in the developer console. Why is this?
Thank you!
I am experiencing unexpected behavoir with a map that contains sets of strings. The controller is below:
public class testbogusmap { public map<string,set<string>> BogusMap {get{ map<string,set<string>> ret = new map<string,set<string>>(); set<string> hiSet = new set<String>(); hiSet.add('ho'); ret.put('hey',hiSet); return ret; } } }
The VF page is here:
<apex:page controller="testbogusmap"> {!bogusmap} </apex:page>My VF page displays
{hey=common.apex.runtime.impl.SetValue@d08}
instead of {hey='ho'} which is what is displayed in the developer console. Why is this?
Thank you!
See if that helps.