- Mastering JavaServer Faces 2.2
- Anghel Leonard
- 147字
- 2021-12-08 12:41:26
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.
- 圖解西門子S7-200系列PLC入門
- Learning AngularJS Animations
- Mastering Delphi Programming:A Complete Reference Guide
- BeagleBone By Example
- Manage Partitions with GParted How-to
- INSTANT ForgedUI Starter
- 計算機維修與維護技術速成
- 嵌入式系統中的模擬電路設計
- CC2530單片機技術與應用
- Spring Cloud微服務架構實戰
- 深入理解序列化與反序列化
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- 基于PROTEUS的電路設計、仿真與制板
- RISC-V處理器與片上系統設計:基于FPGA與云平臺的實驗教程
- WebGL Hotshot