+ Start a Discussion
ajaykekaajaykeka 

How many ways an Apex method can be invoked by VF Page?

Hi all,

 

How many ways an Apex method can be invoked by VF Page?

 

Its Very urgent Can you please give me rply.....

 

Thanks for your Help

Baktash H.Baktash H.
apex:commandButton and apex:commandLink these tags have an action attribute. write in the action attribute the method and the method will be called.
ClintLeeClintLee

You can also call apex methods from javascript with the following:

 

<apex:actionFunction>  or <apex:actionSupport> -  http://www.salesforce.com/us/developer/docs/pages/index.htm  Look up these components in the Standard Component Reference section.

 

Javascript Remoting  -  http://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm

Chris DaviesChris Davies

You can also call an apex method on page load using the action tag