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
subbu.flex9@gmail.comsubbu.flex9@gmail.com 

<apex:actionfunction> , <apex:commandbutton>

<apex:actionfunction>  ,  <apex:commandbutton>

these two componets are invoke the controller mathods , waht is major difference between these two.

 

thank u .

pooja kadampooja kadam

1.<apex:actionfunction> - this is used in call javascript functions in a visualforce page using some events like onclick,etc.

2.<apex:commandbutton>-this tag is used to call method or a function which is defined in a controller ie, apex class , the method will execute on click of button.