- 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
- 24小時學會電腦組裝與維護
- Android NDK Game Development Cookbook
- Creating Dynamic UI with Android Fragments
- 電腦常見問題與故障排除
- 施耐德SoMachine控制器應用及編程指南
- 計算機應用與維護基礎教程
- Learning Stencyl 3.x Game Development Beginner's Guide
- 分布式微服務架構:原理與實戰
- Mastering Adobe Photoshop Elements
- 基于Apache Kylin構建大數據分析平臺
- Visual Media Processing Using Matlab Beginner's Guide
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- 單片機系統設計與開發教程
- LPC1100系列處理器原理及應用
- 單片機原理及應用:基于C51+Proteus仿真