SNIPPET

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.

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).

Syntax

<SNIPPET Id="snipId" Style="mystyle"> snippath </SNIPPET>

Syntax notes

  1. snipId is the object identifier
  2. mystyle is the value of the STYLE attribute
  3. snippath is the path to the template snippet file

Usage Example

<SNIPPET Id="Edit" Style="FileUpload">
 $(res.path.tpl.html5)/FileUpload.xhtml</SNIPPET>

Code Example

EDIT f01 = formonly.f01, STYLE="FileUpload";

For more information, refer to the Genero Web Client User Guide.

Parent elements

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