I was trying to find out what was wrong with the actionFunction tag since half a day only to realise that it does not work without the attribute reRender, which is not documented anywhere.

<apex:actionFunction name="callSubmit" action="{!callSubmitAction}" reRender="messagePanel"/>  

Did you guys experience this any time?

  • 1
    To my experience it should work. If you don't specify the reRender attribute the entire page will be refreshed. Mar 17 '16 at 3:06
  • @georgethomas, The action method in the controller was NOT getting invoked and the only way to make it call was to add the reRender attribute, spent half a day to discover this :(
    – SF Learner
    Mar 17 '16 at 3:12

If you're passing parameters then yep, unfortunately it's always been like that! I blogged about it nearly 5 years ago and it's consistantly been my most popular post!

If you look at the JavaScript functions generated by the Visualforce page renderer they just don't have any parameters if you don't include a rerender attribute.

  • I used the tag without the parameters. Unfortunately, I end up discovering many such limitations in SF platform which cannot be rationalised, makes a developer's life difficult since you end up wasting lot of time not learning anything in the end.
    – SF Learner
    Mar 17 '16 at 3:28
  • The platform definitely has it's quirks. Often these days it's easier to use some of the newer technologies such as visualforce javascript remoting and similar.
    – Matt Lacey
    Mar 17 '16 at 3:58
  • Be interesting to hear the reasoning behind the likely SFDC Tier 3 response of 'Working as designed'. :-)
    – cropredy
    Mar 17 '16 at 4:36

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.