title: Invoke direct methods or methods with arguments / variables / parameters in EL
body: <p>How can I in JSF 2.0 invoke direct methods or methods with arguments / variables / parameters in EL?</p>
  
  <p>For example, getting the list size in EL:</p>
  
  <pre><code>&lt;h:outputText value="#{bean.list.size()}" /&gt;
  </code></pre>
  
  <p>Or invoking an action method with arguments:</p>
  
  <pre><code>&lt;h:commandButton value="edit" action="#{bean.edit(item)}" /&gt;
  </code></pre>
  
  <p>This does not seem to work in my environment. It doesn't seem to like parentheses.</p>
  
  <blockquote>
    <p>javax.el.ELException: Error Parsing: #{bean.list.size()}<br>
    com.sun.el.parser.ParseException: Encountered "("</p>
  </blockquote>