You use JSF Expression Language to create the bindings from component tags on JSF pages to properties (or other values) or methods on classes within the application. Method bindings provide a way to execute methods. Value bindings provide values for attributes on a component.
The syntax for value binding follows that same syntax used by JSP 2.0 expression language, with the following exceptions:
#{
and }
Examples of value binding expressions follow:
#{foo}
#{foo.bar}
#{foo.bar.baz}
#{foo[bar]}
#{foo["bar"]}
#{foo[3]}
#{foo[3].bar}
#{foo.bar[3]}
#{foo.bar == "Hello World"}
#{(foo.bar) / 5 * 3}
Offer Valid from #{offer.validFromDate} to {offer.validToDate}
Method binding expressions must use one of the following patterns:
#{expression.value}
#{expression[value]}
The expression can be any JSF EL expression as described above, in Value Binding Syntax. The value must be an identifier that matches a method name on the object in the expression.
Copyright © 1997, 2006, Oracle. All rights reserved.