Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

How can I add an apex:commandButton to a page doing the following:

  • Executing an apex:actionFunction
  • ReRendering some parts of the page (with reRender="")
  • NOT redirect to another page / refresh actual page.

Thanks!

share|improve this question

1 Answer 1

up vote 2 down vote accepted
<apex:commandButton value="Do something" onclick="actionFunction(); return false;" />
<apex:actionFunction name="actionFunction" action="{!action}" rerender="someArea" />
share|improve this answer
    
You are my hero. thanks @sfdcfox –  jpmonette Jun 26 at 19:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.