WEB_APPLICATION_RENDERING_COMPONENT

A rendering component defines how an application is rendered for delivery via the Web to the front-end.

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

The WEB_APPLICATION_RENDERING_COMPONENT element specifies the output driver and other elements that determine how an application is to be rendered for a Web application (GWC-HTML5). It takes an attribute Id, which specifies the unique identifier for this Rendering component. It is this unique identifier that is referenced by an application, specifying the output driver that the application should use.

Syntax

<WEB_APPLICATION_RENDERING_COMPONENT Id="compId">
  [<OUTPUT_DRIVER> outputDriver </OUTPUT_DRIVER>]
  [<XML_DECLARATION> xmlDec </XML_DECLARATION>]
  [<HTTP_RESPONSE_ENCODING Source="REQUEST|INLINE">
    httpResponseEnc
   </HTTP_RESPONSE_ENCODING>]
  [<HTTP_REQUEST_ENCODING Source="REQUEST|INLINE">
    httpRequestEnc 
    </HTTP_REQUEST_ENCODING>]
  [<MIME_TYPE> mimetype </MIME_TYPE>]
  [<DOC_TYPE> doctype </DOC_TYPE>]
</WEB_APPLICATION_RENDERING_COMPONENT>

Child elements

The WEB_APPLICATION_RENDERING_COMPONENT may contain the following child elements:

  1. Zero or one OUTPUT_DRIVER element.
  2. Zero or one XML_DECLARATION element.
  3. Zero or one HTTP_RESPONSE_ENCODING element.
  4. Zero or one HTTP_REQUEST_ENCODING element.
  5. Zero or one MIME_TYPE element.
  6. Zero or one DOC_TYPE element.

Example

<WEB_APPLICATION_RENDERING_COMPONENT Id="cpn.rendering.gwc">
  <OUTPUT_DRIVER>GWC</OUTPUT_DRIVER>
  <HTTP_RESPONSE_ENCODING Source="INLINE">ISO-8859-1</HTTP_RESPONSE_ENCODING>
  <HTTP_REQUEST_ENCODING Source="INLINE">ISO-8859-1</HTTP_REQUEST_ENCODING>
  <MIME_TYPE>text/html</MIME_TYPE>
</WEB_APPLICATION_RENDERING_COMPONENT>
<WEB_APPLICATION_RENDERING_COMPONENT Id="cpn.rendering.gwc2">
  <OUTPUT_DRIVER>GWC2</OUTPUT_DRIVER>
  <HTTP_RESPONSE_ENCODING Source="REQUEST"/>
  <HTTP_REQUEST_ENCODING Source="REQUEST"/>
  <MIME_TYPE>application/xml</MIME_TYPE>
</WEB_APPLICATION_RENDERING_COMPONENT>

Parent elements

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