- Mastering JavaServer Faces 2.2
- Anghel Leonard
- 205字
- 2021-12-08 12:41:28
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
- 筆記本電腦使用、維護(hù)與故障排除實(shí)戰(zhàn)
- 新媒體跨界交互設(shè)計(jì)
- Arduino入門基礎(chǔ)教程
- 辦公通信設(shè)備維修
- 硬件產(chǎn)品經(jīng)理成長(zhǎng)手記(全彩)
- 硬件產(chǎn)品經(jīng)理手冊(cè):手把手構(gòu)建智能硬件產(chǎn)品
- Hands-On Machine Learning with C#
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- 計(jì)算機(jī)組裝維修與外設(shè)配置(高等職業(yè)院校教改示范教材·計(jì)算機(jī)系列)
- 面向?qū)ο蠓治雠c設(shè)計(jì)(第3版)(修訂版)
- 龍芯自主可信計(jì)算及應(yīng)用
- Intel Edison智能硬件開(kāi)發(fā)指南:基于Yocto Project
- 基于PROTEUS的電路設(shè)計(jì)、仿真與制板
- Spring Security 3.x Cookbook
- Arduino項(xiàng)目開(kāi)發(fā):智能生活