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

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.

主站蜘蛛池模板: 水富县| 林口县| 汉中市| 南康市| 库车县| 新泰市| 梨树县| 禹州市| 雷山县| 泗阳县| 陆川县| 德江县| 子洲县| 澄迈县| 潢川县| 太湖县| 新巴尔虎右旗| 黄山市| 奎屯市| 吴桥县| 青阳县| 司法| 股票| 沁源县| 西宁市| 胶南市| 彩票| 阳朔县| 河东区| 德清县| 武山县| 宜州市| 休宁县| 卫辉市| 金秀| 施秉县| 万全县| 陈巴尔虎旗| 鸡泽县| 娄底市| 平乐县|