concept html page in category system administration

appears as: n HTML page, HTML pages, HTML page, HTML pages
Tuscany SCA in Action

This is an excerpt from Manning's book Tuscany SCA in Action.

Let’s now move on to looking at how you can use an HTML page as a component implementation.

The TuscanySCATours application makes use of an HTML page for the user interface using implementation.widget. Using this interface, users can search for and book their holidays. Listing 8.6 shows part of the composite XML file for the TuscanySCATours application user interface that uses this implementation.widget element. The full composite XML file can be found in the contributions/fullapp-ui directory of the TuscanySCATours application.

Now that you have an idea of what’s required to use an HTML page as an SCA component implementation, let’s run the travel application user interface to see it in action using the launchers/fullapp launcher from the TuscanySCATours application. Once it starts, use your web browser to access it at http://localhost:8080/scatours/, and you should see a web page similar to the one shown in figure 8.6.

Figure 8.6. The TuscanySCATours HTML page as an SCA component implementation

Clicking the Search button will cause the JavaScript in the HTML page to use the SCA reference to do a search for available flights by invoking the search method using JSON-RPC and then display a page of the results.