function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashvin Jadhav 13Ashvin Jadhav 13 

Action method from controller is not getting called from ActionSupport tag in VF

Hi All,

I have inputcheckbox tag as, 
<apex:inputcheckbox value="{!p.selected}" id="CheckOne">
                        <apex:actionSupport event="onclick" action="{!getSelected}" reRender="SelectedItems" />
                    </apex:inputcheckbox>


Where I am calling getselected function from controller as, 

public PageReference getSelected(){
       system.debug('in getselected function ***');
        SelectedProducts.clear();
        .........


But this method is not getting called on clicking of a checkbox. 

Kindly help ! 

Regards,
Ashvin