+ Start a Discussion
mromani1mromani1 

VF controller question

Hi,

 

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.