Back to Contents | GAS Configuration File Overview
A theme component defines the theme that an application or set of applications can use. A theme is made up of one or more templates, which are required when a window or form is to be opened using a specified style. The name of the style is matched with the name of a template; if no template exists for the specified style, the default template is used.
For more information on how templates are used by the Front End clients,
refer to How Templates Work.
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.
<WEB_APPLICATION_THEME_COMPONENT Id="compId" >
[ <TEMPLATE Id="tplId" > path </TEMPLATE> ] [...]
[ <SNIPPET Id="snipId" > snippath </SNIPPET> ] [...]
</WEB_APPLICATION_THEME_COMPONENT>
The WEB_APPLICATION_THEME_COMPONENT can contain the following element (described below):
<WEB_APPLICATION_THEME_COMPONENT Id="cpn.theme.default.gwc"> <TEMPLATE Id="_default">$(res.theme.default.gwc.template)</TEMPLATE> <TEMPLATE Id="_end">$(res.theme.default.html.end)</TEMPLATE> ... </WEB_APPLICATION_THEME_COMPONENT>
The TEMPLATE element associates a template identifier (or style name) with a template to be used in the application. With Genero, you can specify that a window or form be displayed using a specific style. This style name is matched to a template identifier, and the associated template file is then used to format the display.
Pre-defined template identifiers include:
Template Identifier | Description |
_default | Default template used when the style attribute of the window is not defined or if the corresponding id is not found. |
_end | Template used after the application has closed. |
_error | Template used whenever an error occurred. |
_timeout | Template used after a USER_AGENT timeout. |
_transaction | Template used between two states if the transaction takes too much time to achieve (a REQUEST_RESULT timeout). |
_launch | Template used when launching an application (when a RUN instruction launches an application). |
_ft | Template used for file transfer secondary page. |
<TEMPLATE Id="tplId" > path </TEMPLATE>
<TEMPLATE Id="_end">$(res.theme.default.html.end)</TEMPLATE> <TEMPLATE Id="style1">/home/styledir/style1.html</TEMPLATE>
The SNIPPET element associates a snippet object identifier with a template to be used by the Genero Web Client snippet-based rendering engine when rendering forms that include the specified object.
<SNIPPET Id="snipId" Style="mystyle"> snippath </SNIPPET>
<SNIPPET Id="Edit" Style="FileUpload">$(res.path.tpl.ajax)/FileUpload.xhtml</SNIPPET>
EDIT f01 = formonly.f01, STYLE="FileUpload";
For more information, refer to the Genero Web Client Manual.