You need to sign in to do that
Don't have an account?
Middha
Accessing Map values on Visualforce page
Hi,
A simple Visualforce question: What’s the quick and dirty way of getting a value of the values for keys of a Map from an APEX class?
Example – I need the value of the key ‘A’ on a Visaulforce page, from the following:
public Map<String,String>> getThings(){
Map<String,String> opts = new Map<String,String>(){'A'=>'B'};
return opts;
}
I tried accessing it on the page as {!opts.A}, which gives me an error "MapValue.A" does not exist.
Thanks,
GreatG
I did created a wrapper class, with getters/setters, and it worked as required.
Thanks :)
[GM]
Hey,
Can you please post the wrapper and the getter/setter methods.
Hey I think this link here might help you in terms of the setters/getters.