You need to sign in to do that
Don't have an account?
suresh.csk
ApexPagesHandledException: Cannot convert the value of '{!CustomObjectList}' to the expected type
hi.
I pass custom object List to visualforce component which assigns to apex varaible as same type.
But I get error like
ApexPagesHandledException: Cannot convert the value of '{!customObjectList}' to the expected type
<apex:component controller="MyController" >
<apex:attribute name="customDetials" description="supplementary detials" type="CustomObject__c[ ]" assignTo="{!customeObjectList}"/>
public class MyContorller{
public List<CustomObject__c> customeObjectList{get;set;}
}
Both attribute name and apex variable are of same type but not being assigned.
Does anyone came across like this
Best Regards
suresh
I pass custom object List to visualforce component which assigns to apex varaible as same type.
But I get error like
ApexPagesHandledException: Cannot convert the value of '{!customObjectList}' to the expected type
<apex:component controller="MyController" >
<apex:attribute name="customDetials" description="supplementary detials" type="CustomObject__c[ ]" assignTo="{!customeObjectList}"/>
public class MyContorller{
public List<CustomObject__c> customeObjectList{get;set;}
}
Both attribute name and apex variable are of same type but not being assigned.
Does anyone came across like this
Best Regards
suresh
I tried your code in my DE and it compiled just fine !
Regards,