- 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.
- Instant uTorrent
- 計算機應用與維護基礎教程
- 微服務分布式架構基礎與實戰:基于Spring Boot + Spring Cloud
- 嵌入式系統中的模擬電路設計
- Visual Media Processing Using Matlab Beginner's Guide
- Spring Cloud微服務架構實戰
- 面向對象分析與設計(第3版)(修訂版)
- Blender Quick Start Guide
- Internet of Things Projects with ESP32
- 深入理解序列化與反序列化
- 微控制器的應用
- 微服務實戰
- Nagios系統監控實踐(原書第2版)
- PIC系列單片機的流碼編程
- Hands-On Markov Models with Python