I’m programming in JSF2 and NetBeans creates many pages with #{} that contains an expression. However sometimes on the web I found ${} for the same thing!
Are there any differences? What are they?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
#{}are for deferred expressions (they are resolveddepending on the life cycle of the page) and can be used to read or
write from or to a bean or to make a method call.
${}are expressions for immediate resolution, as soon as they areencountered they are resolved. They are read-only.
You can read more here: http://docs.oracle.com/javaee/6/tutorial/doc/bnahr.html