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

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
主站蜘蛛池模板: 抚顺市| 裕民县| 凤山市| 茌平县| 渭源县| 喀喇沁旗| 霍林郭勒市| 永和县| 宁夏| 天镇县| 芒康县| 肥城市| 鹤峰县| 慈溪市| 阿合奇县| 靖西县| 汤原县| 陇西县| 东平县| 澎湖县| 将乐县| 马公市| 晋州市| 若尔盖县| 云和县| 桑日县| 温州市| 恩施市| 岗巴县| 洞头县| 习水县| 麻栗坡县| 隆化县| 安陆市| 八宿县| 当雄县| 平凉市| 绵竹市| 吴堡县| 星座| 平阳县|