官术网_书友最值得收藏!

EL immediate and deferred evaluation

EL evaluates expressions as immediate or deferred.

Immediate evaluation returns the result as soon as the page is first rendered. These kinds of expressions are read-only value expressions and they can be present only in tags that accept runtime expressions. They are easy to recognize after the ${} notation. Usually, they are used for arithmetic and logical operations in JSP pages.

Deferred evaluation can return the result at different phases of a page's life cycle depending on the technology that is using the expression. JSF can evaluate the expression at different phases of the life cycle (for example, during the rendering and postback phase), depending on how the expression is being used in the page. These kind of expressions can be value and method expressions, and they are marked by the #{} notation.

Note

In Facelets, ${} and #{} act the same.

主站蜘蛛池模板: 大石桥市| 临夏县| 襄垣县| 洪雅县| 商南县| 砚山县| 定结县| 吴堡县| 晋宁县| 大埔县| 乐至县| 灌南县| 无极县| 定边县| 新巴尔虎右旗| 武陟县| 同江市| 齐齐哈尔市| 浮山县| 宣汉县| 大荔县| 临朐县| 湟中县| 溧阳市| 金阳县| 南华县| 六盘水市| 彩票| 盐城市| 邵阳市| 鲁甸县| 华容县| 莲花县| 林州市| 政和县| 恩平市| 广元市| 鄂州市| 深圳市| 临沭县| 济宁市|