• nik m
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

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.