- Mastering JavaServer Faces 2.2
- Anghel Leonard
- 199字
- 2021-12-08 12:41:26
Chapter 1. Dynamic Access to JSF Application Data through Expression Language (EL 3.0)
Java Expression Language (EL) is a compact and powerful mechanism that enables dynamic communication in JSP and JSF-based applications (including development frameworks based on JSF such as PrimeFaces, ICEfaces, and RichFaces); we embed expressions in the presentation layer to communicate with the application logic layer. EL provides bidirectional communication, which means that we can expose application logic data to the user, but we also can submit user data to be processes. Generically speaking, EL can be used to populate HTTP requests with user data, to extract and expose data from HTTP responses, to update HTML DOM, to conditionally process data, and much more.
Note
Commonly, EL expressions will be present in JSP and JSF pages, but they can also appear outside, in faces-config.xml
, for example.
In this chapter, you will see how to use EL in web pages to communicate with managed beans, which is the most common case in JSF applications. We will cover the following topics:
- EL syntax, operators, and reserved words
- EL immediate and deferred evaluation
- EL value and method expressions
- The conditional text in JSF
- Write a custom EL resolver
- 零點起飛學Xilinx FPG
- 計算機組裝·維護與故障排除
- 硬件產品經理成長手記(全彩)
- 現代辦公設備使用與維護
- Learning Stencyl 3.x Game Development Beginner's Guide
- Arduino BLINK Blueprints
- OpenGL Game Development By Example
- 數字媒體專業英語(第2版)
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- Java Deep Learning Cookbook
- 單片機原理與技能訓練
- 計算機組裝與維護(慕課版)
- 筆記本電腦的結構、原理與維修
- The Machine Learning Workshop
- Service Mesh微服務架構設計