- 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.
- 觸摸屏實用技術與工程應用
- Raspberry Pi 3 Cookbook for Python Programmers
- 精選單片機設計與制作30例(第2版)
- Getting Started with Qt 5
- 電腦常見故障現(xiàn)場處理
- 硬件產(chǎn)品經(jīng)理手冊:手把手構建智能硬件產(chǎn)品
- Artificial Intelligence Business:How you can profit from AI
- 深入理解序列化與反序列化
- VMware Workstation:No Experience Necessary
- 龍芯自主可信計算及應用
- 計算機組裝與維護(慕課版)
- USB應用開發(fā)寶典
- The Deep Learning with PyTorch Workshop
- 基于S5PV210處理器的嵌入式開發(fā)完全攻略
- Nagios系統(tǒng)監(jiān)控實踐(原書第2版)