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

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.

主站蜘蛛池模板: 大冶市| 临朐县| 长顺县| 武平县| 隆安县| 民权县| 葫芦岛市| 潼关县| 仙桃市| 吉安市| 陈巴尔虎旗| 光泽县| 南丹县| 芮城县| 鹤峰县| 海晏县| 阳谷县| 交口县| 南溪县| 抚宁县| 湘潭市| 长武县| 潞城市| 鹤峰县| 临沭县| 信阳市| 西林县| 旬邑县| 涡阳县| 留坝县| 隆德县| 平顺县| 微博| 灌云县| 德兴市| 宜黄县| 武宁县| 赣州市| 鄄城县| 宁武县| 宁南县|