webtier@glassfish.java.net

Re: [webtier] JSF2.0.2+Spring 3.0 Issue passing parameter to ManagedBean

From: Ed Burns <Ed.Burns_at_Sun.COM>
Date: Fri, 26 Feb 2010 03:54:08 -0500

On 2/25/10 9:58 PM, webtier_at_javadesktop.org wrote:
> Thanks Ed.
>
> Is that the only way? I thought JSF2.0 had better EL support.
>
> In general is there no way to call a method with parameter directly?

Oh sure, there is. This is an example from chapter 5 of my book:

<h:body>
   <h:form>
     <p>
        The text after the colon comes from the invocation of
        a method via the EL:
  #{model.generateSentance(param.word1, param.word2)}
     </p>
   </h:form>
</h:body>

Ed