- 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
- 新媒體跨界交互設(shè)計
- 零點起飛學(xué)Xilinx FPG
- 顯卡維修知識精解
- 計算機組裝與系統(tǒng)配置
- 數(shù)字道路技術(shù)架構(gòu)與建設(shè)指南
- 基于ARM的嵌入式系統(tǒng)和物聯(lián)網(wǎng)開發(fā)
- Unity 5.x Game Development Blueprints
- 分布式系統(tǒng)與一致性
- CC2530單片機技術(shù)與應(yīng)用
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- 計算機組裝維修與外設(shè)配置(高等職業(yè)院校教改示范教材·計算機系列)
- Source SDK Game Development Essentials
- 深入理解序列化與反序列化
- Neural Network Programming with Java(Second Edition)
- 單片微機原理及應(yīng)用