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

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
主站蜘蛛池模板: 高州市| 利川市| 建德市| 镇宁| 武山县| 甘泉县| 蓝田县| 罗山县| 富锦市| 阿瓦提县| 禄丰县| 武冈市| 夏津县| 河北区| 化德县| 镇坪县| 长汀县| 伽师县| 海安县| 兴海县| 温州市| 香格里拉县| 镇原县| 定南县| 仁寿县| 邯郸市| 慈利县| 澄城县| 突泉县| 波密县| 璧山县| 城固县| 乐亭县| 体育| 山东省| 田阳县| 始兴县| 洪湖市| 建瓯市| 攀枝花市| 青海省|