- 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.
- 零點(diǎn)起飛學(xué)Xilinx FPG
- Aftershot Pro:Non-destructive photo editing and management
- 24小時(shí)學(xué)會(huì)電腦組裝與維護(hù)
- Istio入門與實(shí)戰(zhàn)
- Android NDK Game Development Cookbook
- Hands-On Machine Learning with C#
- BeagleBone Robotic Projects
- Blender Quick Start Guide
- Intel Edison智能硬件開發(fā)指南:基于Yocto Project
- 基于網(wǎng)絡(luò)化教學(xué)的項(xiàng)目化單片機(jī)應(yīng)用技術(shù)
- 筆記本電腦維修技能實(shí)訓(xùn)
- 計(jì)算機(jī)組成技術(shù)教程
- 嵌入式系統(tǒng)設(shè)計(jì)大學(xué)教程(第2版)
- 基于S5PV210處理器的嵌入式開發(fā)完全攻略
- ARM接口編程