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

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
主站蜘蛛池模板: 舞阳县| 乌苏市| 镇雄县| 唐河县| 长兴县| 龙海市| 丹江口市| 桃园县| 时尚| 深州市| 张家界市| 萨嘎县| 凭祥市| 宜宾市| 榆林市| 荣昌县| 宁明县| 德惠市| 富源县| 郯城县| 西丰县| 时尚| 保康县| 萝北县| 娄烦县| 正安县| 化州市| 武强县| 鞍山市| 腾冲县| 平安县| 兰西县| 南溪县| 化隆| 太湖县| 吉隆县| 定襄县| 彭泽县| 绥江县| 潼关县| 策勒县|