WEB_APPLICATION_THEME_COMPONENT

This element specifies the theme (set of templates) that the application or set of applications can use.

Attention: As of Genero version 3.00, the Snippet-Based Rendering Engine (SBRE) and all themes using template paths are deprecated. Output maps (e.g. DUA_HTML5) are no longer used to specify output theme, as the wa protocol did previously. For information on how templates and snippets were used by the front-ends, please refer to the Genero Application Server 2.50 User Guide.

For new development, use Genero Browser Client, see Genero Web Client for JavaScript (GWC-JS).

A theme component defines the theme that an application or set of applications can use. A theme is made up of one main template and multiple template snippets that will drive the rendering of snippet-based rendering engine (SBRE) components. The same snippet identifier can appear more than one time, but each one must be associated with an unique style name, so that each template snippet is uniquely identified by the identifier/style couple. If no template snippet exists for the specified style, the default one is used.

The WEB_APPLICATION_THEME_COMPONENT element specifies the theme (set of templates) that the application or set of applications can use. It takes an attribute Id, which specifies the unique identifier for this Template component. It is this unique identifier that is referenced by a Web application to make accessible the list of templates defined therein.

Syntax

<WEB_APPLICATION_THEME_COMPONENT Id="compId" >
   [ <TEMPLATE Id="_default" > templatePath </TEMPLATE > ]  
   [ <SHORTCUT Id="_default" > shortcutPath </SHORTCUT > ]  
   [ <SNIPPET Id="snipId" [ Style="stylename" ] > snippath </SNIPPET> ]  [...] 
</WEB_APPLICATION_THEME_COMPONENT>

Child elements

The WEB_APPLICATION_THEME_COMPONENT may contain the following elements:

  1. Zero or one TEMPLATE element.
  2. Zero or one SHORTCUT element.
  3. Zero or more SNIPPET elements.

Example

<WEB_APPLICATION_THEME_COMPONENT Id="cpn.theme.html5.gwc">
  <TEMPLATE Id="_default">$(res.path.tpl.html5)/main.xhtml</TEMPLATE>
  <SNIPPET Id="UIFrame">$(res.path.tpl.html5)/UIFrame.xhtml</SNIPPET> 
  ...
</WEB_APPLICATION_THEME_COMPONENT>

Parent elements

This element is a child of one of the following elements:

COMPONENT_LIST