title: How to pass dynamic parameter to backing bean using EL 2.2 method expression?
body: <p>I'm trying to call a function from a JSF 2.0 page in my backing bean passing a dynamic parameter. It works fine as long as im passing a static string, but when I try using a dynamic one, I always get an EL parsing error. I guess its a syntax problem, but I can't think of another way to do this using method expression. I know that I could do it with the <code>&lt;f:param..../&gt;</code> tag, but I'm not going to give up on this one :)</p>
  
  <pre><code>&lt;h:dataTable  var="urlresult" value="#{search.searchResults_sites_urls}"&gt;
      &lt;h:column&gt;
          &lt;h:form&gt;
              &lt;h:outputText value="#{urlresult}" /&gt;
              &lt;h:commandLink action="#{search.showUrls(#{urlresult})}" value=" x" /&gt;
          &lt;/h:form&gt;
      &lt;/h:column&gt;
  &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>The method in the backing bean:</p>
  
  <pre><code>public void showUrls(String url) {
      //CODE
  }
  </code></pre>
  
  <p>How is this caused and how can I solve it?</p>