JSF client environment

The application presentation layer and application logic layer run on WebSphere® Process Server so that the example can show how the presentation layer works and uses BTT Operation to perform the business logic.

  1. The user requests a customer search and provides the required input data:
    1. The user clicks a customer search link in the menu. The user action sends a request to the JSF framework.
    2. While resolving the value binding expressions of the JSP pages, the request will be forwarded to BTT JSF extension.
    3. 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.
    4. In the client side, the browser displays the HTML page.
    5. 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.
    6. BTT JSF extension invokes the corresponding execution method in the base bean according to the event fired from the JSP page.
    7. 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.
  2. The application logic layer executes the business process:
    1. BTT Invoker invokes the BTT business components, for example, BTT Operation and so on.
    2. Upon the completion of the business logic, the BTT Invoker returns the processed result that includes the information needed by the presentation tier.
  3. 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.