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

VF controller question



I was wondering if it is possible to pass parameters to our controller method while in a VF page.


For example, normally, say we have a controller called "MyController" and inside it we have a method call "Method" which take a string parameter.


Is it possible to call this method and pass a value to it from our VF page? If so how?


Would this work?  


<apex:commandButton action="{!Method('stringvalue'}"/>


Thanks in advance.