• espostor
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I am having issue to assign a map from<apex:attribute type="map" assignedTo={!method}

 

Getting the below error message:

 Error: Type mismatch for <apex:attribute assignTo>. Value binding to a property of type MAP<Object,Object> is required, property specified is of type MAP<String,String>.

 

Below is the code snipet I am using:

VF Component:

    <apex:attribute name="leftOptions" description="Map for left Picklist" type="map" required="true" assignTo="{!test}"/>

Definition in Controller:

public Map<String,String> test {get;set;}

 

Note: the same errot comes for below definitions as well -

public Map<Account,Contact> test {get;set;}

public Map<sObject,sObject> test {get;set;}

 

Please let me know anyone need more information to help. Thanks in advance.