title: Is it possible to pass argument from visualforce apex tag?
body: <p>I have a function searchWorkByName that takes "key" as an argument and use SQOL to retrieve the data.</p>
  
  <p>In visualforce side, I have a link that calls searchWorkByName but would like to be able to pass argument such as character 'a'</p>
  
  <p>example, (this throws an error)</p>
  
  <pre><code>&lt;apex:commandLink value="search!" action="{!searchWorkByName('aaa')}" /&gt;
  </code></pre>
  
  <p>Is it possible to do so if not what is the alternatives?</p>
  
  <p><strong>apex class</strong></p>
  
  <pre><code>public class SearchWorkTest { 
  
      public PageReference searchWorkByName(String key) {
  
              //find record of work names starting from provided key character
              workNames = [select name from work__c where work__c.name like 'key%'];
              return Page.searchResult;   
       }
  }
  </code></pre>
  
  <p><strong>visualforce</strong></p>
  
  <pre><code>&lt;apex:page standardController="work__c" extenstions="SearchWorkTest"&gt;
    &lt;!-- Is it possible to pass argument like 'foo' ? --&gt;
    &lt;apex:commandLink value="search!" action="{!searchWorkByName}" /&gt;
  &lt;/apex:page&gt;
  </code></pre>