1

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?

2
  • 1
    To my experience it should work. If you don't specify the reRender attribute the entire page will be refreshed. Mar 17, 2016 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, 2016 at 3:12

1 Answer 1

3

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.

3
  • 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, 2016 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, 2016 at 3:58
  • Be interesting to hear the reasoning behind the likely SFDC Tier 3 response of 'Working as designed'. :-)
    – cropredy
    Mar 17, 2016 at 4:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .