Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

FAQ Category:

For the EL specification itself, there is no difference between # and $. It is up to the technology using the EL to decide what it means. For both JSP and JSF, expressions that start with a pound sign mean deferred evaluation and a dollar sign means immediate evaluation. This all has to do with when the expression will actually be evaluated during request processing. The pound sign is used in JSF components because we want the expression to be evaluated by the JSF lifecycle and not by the JSP or Facelets engine.

1 comment:
 
28. Feb 2008, 00:25 CET | Link

The Facelets documentation appears to contradict this:

With the new EL Specification, the use of #{...} and ${...} are both supported and Facelets makes no distinction between the two. The short of it is that you can freely interchange the two with whatever is most familiar to what you're working on. Both syntaxes will be handled the same way and share the same lifecycles and features.

Is this accurate?

 

Luke Maurer

ReplyQuote
Post Comment