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

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
主站蜘蛛池模板: 小金县| 岫岩| 通榆县| 阿合奇县| 上杭县| 休宁县| 霍城县| 湟源县| 丽水市| 新巴尔虎左旗| 潞城市| 建水县| 济南市| 泗阳县| 万源市| 驻马店市| 博兴县| 文化| 邵武市| 株洲市| 锡林郭勒盟| 青铜峡市| 佛冈县| 鹤山市| 黔南| 临湘市| 浦县| 随州市| 东兴市| 溆浦县| 九龙县| 郓城县| 临颍县| 文昌市| 萍乡市| 峨眉山市| 晋江市| 共和县| 上饶市| 厦门市| 金川县|