GAS Configuration Reference / Configuration file elements |
This element specifies the theme (set of templates) that the application or set of applications can use.
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.
<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>
The WEB_APPLICATION_THEME_COMPONENT may contain the following elements:
<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>