4

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!

3
<apex:commandButton value="Do something" onclick="actionFunction(); return false;" />
<apex:actionFunction name="actionFunction" action="{!action}" rerender="someArea" />
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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