BTT version 6.1.1 provides support of JavaServer Faces (JSF)
as one of the BTT channels. You can implement a presentation tier using JSF
technology and build server-side applications using the BTT framework.
- The user requests a customer search and provides the required input data:
- The user clicks a customer search link in the menu. The user action sends
a request to the JSF framework.
- While resolving the value binding expressions of the JSP pages, the request
will be forwarded to BTT JSF extension.
- After the BTT JSF extension resolves the value binding expressions, the
request will be returned to the JSF framework. And then the request will be
directed to the JSP page.
- In the client side, the browser displays the HTML page.
- The user enters the input data and clicks Submit.
BTT JSF extension resolves the value binding expressions and acquires the
data inputted by the user, and then put the data into the BTT context associated
with the managed bean.
- BTT JSF extension invokes the corresponding execution method in the base
bean according to the event fired from the JSP page.
- The base bean delivered by BTT JSF extension constructs a BTT Invoker
instance according to the invoker Id, which is passed as a parameter of the execute() method,
and then the base bean invokes the BTT Invoker to process the business logic.
- The application logic layer executes the business process:
- BTT Invoker invokes the BTT business components, for example, BTT Operation
and so on.
- Upon the completion of the business logic, the BTT Invoker returns the
processed result that includes the information needed by the presentation
tier.
- The client view displays a list of customer matching the search criteria:
- The base bean parses the result from BTT Invoker and picks up the BTT
context and the outcome and so on, and then propagates them to the backing
bean which originally initiates the request.
- JSF framework directs the request to the JSP page according to the outcome.
When displaying the JSP page, the presentation data will be obtained from
the BTT context through the BTT JSF extension.
- The client displays the HTML page.