官术网_书友最值得收藏!

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
主站蜘蛛池模板: 奉新县| 呼玛县| 治多县| 江陵县| 尼木县| 定州市| 杭锦后旗| 海林市| 莱芜市| 中牟县| 普定县| 鄂托克前旗| 枣庄市| 虎林市| 和龙市| 五华县| 宜黄县| 清流县| 彰化市| 钟祥市| 永济市| 申扎县| 铜鼓县| 乐都县| 彭水| 达州市| 平度市| 门头沟区| 莫力| 金华市| 大竹县| 云林县| 望江县| 武山县| 固始县| 迭部县| 大埔区| 濮阳县| 罗江县| 潜江市| 玛曲县|