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

Chapter 2. Communication in JSF

Communication is the core of a JSF application, and is one of the main aspects that dictate the architecture of such an application. Thinking of the big picture, you need to identify—right from the start—the main parts and how they will communicate with one another and with the end user. After selecting design patterns, drawing the UML diagrams, and sketching the architecture and the application flow, it's time to get to work and start implementing the communication pipes using forms, parameters, arguments, values, pages, beans, and so on.

Fortunately, JSF provides many solutions for ensuring a powerful and flexible communication layer between JSF components and also between JSF and XHTML pages, the JavaScript code, and other third-party components. In this chapter, we will cover the following topics:

  • Using context parameters
  • Passing request parameters with the <f:param> tag
  • Working with view parameters
  • Calling actions on GET requests
  • Passing attributes with the <f:attribute> tag
  • Setting property values via action listeners
  • Passing parameters using the Flash scope
  • Replacing the <f:param> tag with the JSTL <c:set> tag
  • Sending data through cookies
  • Working with hidden fields
  • Sending passwords
  • Accessing UI component attributes programmatically
  • Passing parameters via method expressions
  • Communicating via the binding attribute
主站蜘蛛池模板: 嘉峪关市| 连江县| 介休市| 长阳| 丰都县| 宣汉县| 乐清市| 南城县| 永州市| 陇川县| 铁力市| 运城市| 乌鲁木齐县| 吴川市| 千阳县| 延吉市| 岐山县| 台南县| 寿光市| 日喀则市| 安阳市| 茶陵县| 罗田县| 靖远县| 鹤岗市| 胶州市| 马公市| 大名县| 乌苏市| 苍山县| 兴和县| 长沙市| 景德镇市| 宜宾县| 理塘县| 江口县| 房山区| 内乡县| 昭通市| 哈密市| 益阳市|