function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
xxxxxxxxxxxxxxxx 

apex:actionFunction and apex:actionSupport bug without rerender attribute

Both apex:actionFunction and apex:actionSupport do not work with param tag if the rerender attribute is not specified.

I used a simple instance of the actionFunction tag with an apex:param tag and assigned the value to a variable in my controller.
I did not intend the use the value of the variable again in my VF page so I simply used a System.debug() to display the variable value.
It showed up as null!!!

I made a single change to the tag and added the rerender attribute to with the id of an unrelated outputPanel and voila!, the system.debug() works.

The same thing happened with the actionSupport tag.

I copied the example in the Visualforce Reference for actionSupport and actionFunction
except
 - removed the rerender attribute on the VF page and
 - added a System.debug in the controller

 
Has anybody else come across this OR figured this out? 

bob_buzzardbob_buzzard

This appears to be a bug that was introduced in winter 11.  There are other threads around this so you are not alone.

 

I haven't found or seen a workaround for this.