i write a small snippet related to apex:inputCheckBox
<apex:inputCheckbox onclick="callRemoteFunction(this,{!num})" selected="{!isItemSelected}"/>
i am facing error
Unknown function isItemSelected. Check spelling
in my custom controller there is a function named isItemSelected here is definition
public Boolean isItemSelected(){
System.debug('---coming here---');
return false;
}
can anyone please explain why i am facing this issue when there is a corresponding function in controller ??
Best Answer
You need to change your method to:
Methods that can be accessed in Visualforce need to be defined as getters: