Hi,
Your question is twofold. Firstly, it normally dpend on the JSF version (1.1
or 1.2+). In JSF 1.1, ${} always gets resolved at page execution time,
whereas #{} is 'deferred' until JSF asks for its evaluation. Starting with
JSP 2.1 and JSF 1.2, Unified EL is used and both are the same, but the
resolution can still be immediate or deferred, depending on the attribute
definition within the TLD.
However, you're using Facelets so you get 1.2 behavior even if using 1.1,
but without required TLD, so the Handler instead decide if the EL get
evaluated immediately or later. In you case, my hunch is that your
predecessor was a JSP developper and kept using ${} out of habits and most
should be #{}.
Regards,
~ Simon
On Mon, Jun 1, 2009 at 1:04 PM, Michael Giroux <[email protected]> wrote:
> I have inherited a JSF application. The application is using MyFaces
> and Facelets. I discovered a page that contains a series of
> expressions using "${" instead of "#{"
>
> Everything I have read says that ${ is not used in JSF, but these are
> being evaluated correctly.
>
> Can anyone tell me where the ${ ... } is being resolved?
>
> Thanks
> Michael
>