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
DavserDavser 

Passing Parameters from VF Page to controller

Hey
I'm trying to do something like this in my VF markup:
 
Code:
action="{!next(false)}"

 
where I am passing the parameter false into the next function in my controller. I cannot find a definitive answer if this can be done, and cannot seem to get it working myself. Anyone know for sure?
dchasmandchasman
Action methods do not support arguments at this time - lots of question on this one and we have been considering supporting this at some point in the future. You can, however, leverage <apex:param>'s assignTo attribute to inject your value into your controller via a property that you can then access from inside your action method.
DavserDavser

Well I want to call this method from various places, both the visualforce page and other methods within that class. I have worked around this, but it would make life easier to have this feature (and it seems like it should be there!)

Thanks as always for the quick response.