Reply
Regular Contributor
ajaykeka
Posts: 17

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

Regular Contributor
Baktash H.
Posts: 55

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

apex:commandButton and apex:commandLink these tags have an action attribute. write in the action attribute the method and the method will be called.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

baktash@cloudideas.de
Regular Contributor
billyclint
Posts: 127

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

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

Principal
The Flywheel Group
www.theflywheelgroup.com
Regular Contributor
Chris O Davies
Posts: 63

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

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

Salesforce MVP, Technologist, Cloud Computing Evangelist