Configuring Siebel Business Applications > About Siebel Web Templates and Siebel Tags > About Siebel Web Templates >

Overview of Siebel Web Templates

A Siebel web template includes a preset format that Siebel CRM reuses each time Siebel CRM requires a particular layout. This way, Siebel CRM uses only a single template rather than multiple files every time it requires a particular layout. For more information, see Siebel Web Template.

A Web browser uses HTML to define the layout and format of a page. Siebel web templates provide this HTML layout to the Siebel Web Engine when Siebel CRM renders Siebel objects in the Siebel client. The templates contain markup tags, such as HTML, WML, and XML, that are interspersed with Siebel tags. Siebel CRM prefixes these tags with the following text: swe.

A Siebel web template includes empty placeholders that contain no data. To enter data and user interface elements into a template, Siebel CRM associates views, applets, controls, and other objects with each template. These objects are defined in the Siebel repository. Siebel CRM maps each object to an empty placeholder in the template. For example, assume a view maps to three applets. You associate a view web template with the view, and then map each applet to a placeholder in that template.

How Siebel CRM Renders a Wireless Application

Siebel CRM renders a wireless application in the same way as it renders an application that is not wireless except for the fact that the markup language in the templates uses WML or XML code. Although this topic describes configuration for Web (HTML) applications, many of the concepts described in this chapter are generic across markup languages.

Types of Siebel Web Templates

Siebel CRM uses the following types of Siebel web templates:

  • Page container template. Provides a structure for Siebel CRM. Each Siebel application uses one page container. Used as a container for view web templates. A view that does not use the container page usually varies significantly from other views. For example, the login page does not use the page container.
  • Web page template. Defines the layout for the entire display. Includes information about where Siebel CRM displays the screen bar, view bar, and view.
  • View web template. Defines the layout for a view. Specifies where to position applets and other page-level controls on the view. Specifies the format of the view.
  • Applet template. Defines the layout for fields and controls in an applet. Specifies how to format elements in an applet. An applet can include more than one mode. Siebel CRM associates each mode with a template. For more information, see Options to Control How the User Creates, Edits, Queries, and Deletes CRM Data.
  • Format template. Allows you to create custom HTML types, such as specialized controls, list items, and page items. These templates use the SWF (Siebel Web Format) extension. For more information about SWF files, see Customizing an HTML Control Type.

Siebel CRM can contain other pages that do not contain any Siebel tags. For example, you might include an About This Application help page. However, this page is not a template.

Development Environment You Use to Generate HTML Output

Figure 30 illustrates the development environment you use to generate HTML output. The Siebel Web Engine uses templates, repository definitions, and HTML to generate HTML output.

Figure 30. Development Environment You Use to Generate HTML Output

You use the development environment to do the following:

  1. Edit the HTML in an external HTML editor.
  2. Use the Web Layout Editor in Siebel Tools to edit the layout of an applet and to map object definitions to the Siebel web template.

If a Siebel client requests a specific view, then the Siebel Web Engine does the following:

  1. Retrieves the object definition for the view and the object definition for each applet in that view from the SRF file. Retrieves the data defined in the object definition from the data manager layer of the application object manager (AOM).
  2. Matches this data with the template that the view references and each applet in the view.
  3. Uses the placeholders in the template to render this view. Defines where each user interface element in the object definition is placed and how it is formatted.

    If the user accesses the HTML file in a Web browser, then Siebel CRM renders it as a Web page, and includes the layout defined in the original template and the data and controls retrieved.

Siebel Web Template Reuse

You can share a Siebel Web template among many objects in the Siebel repository. Because a template includes placeholders that do not contain data, Siebel CRM can map any number of repository objects to a specific placeholder. This allows you to change only one template to apply style or structural changes to numerous user interface elements. A typical Siebel application contains approximately 5 to 50 templates. These templates form the basis for several hundred views and applets. For example, Siebel CRM can share a template that defines the layout and format of a predefined list applet among all list applet definitions in the Siebel repository.

If a placeholder is not mapped, then the Siebel Web Engine ignores it and the HTML between the Siebel tags that define the placeholder. For example, if the template contains layout for a list applet that is 10 columns in width but only two of the columns are mapped, then the Siebel Web Engine ignores the other eight unmapped columns. This technique improves efficiency and performance.

Flexibility of Use

Siebel CRM comes with many predefined applet web templates and view web templates that you can modify. To support your business processes, it might not be necessary for you to modify any of the applet web template and view web templates. However, in some situations, especially with customer and partner applications, you can modify predefined templates to reflect your corporate look and feel. You can also create entirely new templates.

A Siebel Web template file can include another Siebel Web template. Siebel CRM uses this technique to improve efficiency. For example, to separate handling for the title of an applet from handling the body of an applet, you can create a template file that includes the title in the applet template. This way, you can define an applet layout once and then combine it with multiple different title layouts.

A Siebel Web template must use valid HTML. It is recommended that you do not add JavaScript beyond what the Siebel Web Engine already generates. If it is necessary to add JavaScript, then you must use Siebel Tools to define browser script.

You can use Siebel Tools or an external editor to modify a template. For more information, see Using Siebel Tools.

Support for Multiple Browser Types

The layout and style of HTML Web pages is dynamic, which allows simultaneous support for multiple browser types and versions. A Siebel web template supports conditional branching. Siebel CRM evaluates conditions according to the results of a business service.

Configuring Siebel Business Applications Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.