How an Output Map is chosen

The Output Map chosen for an application is based on the detected browser type, as specified in the adua.xrd file.

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 Genero Application Server first identifies the value of the RULE element for the application. The RULE element is defined in (or inherited by) the application configuration.

For example, if the value of the RULE element is UseGWC, then drop into that element. Once inside that element, the type of browser being used to display the application determines which Output Map is used to render the application.

<?xml version="1.0" encoding="UTF-8"?>
<!--
 FOURJS_START_COPYRIGHT(D,2000)
 Property of Four Js*
 (c) Copyright Four Js 2000, 2019. All Rights Reserved.
 * Trademark of Four Js Development Tools Europe Ltd
   in the United States and elsewhere
 
 This file can be modified by licensees according to the product manual.
 FOURJS_END_COPYRIGHT
 -->
<RULE_LIST
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/2.50/xrd.xsd">
  <!-- Output Driver Determination (XRD - XML Rule Definition) -->
  <RULE Id="UseGDC">
    <TABLE Id="1" Key="User-Agent">
      <ROW>
        <IN>MSIE</IN>
        <ACTION Type="RESULT">DUA_GDC</ACTION>
      </ROW>
      <ROW>
        <IN>GDC</IN>
        <ACTION Type="RESULT">DUA_GDC</ACTION>
      </ROW>
    </TABLE>
  </RULE>
  <RULE Id="UseGWC">
    <TABLE Id="1" Key="User-Agent">
      <ROW>
        <IN>GDC</IN>
        <ACTION Type="RESULT">DUA_GDC</ACTION>
      </ROW>
      <ROW>
        <ACTION Type="RESULT">DUA_HTML5</ACTION>
      </ROW>
    </TABLE>
  </RULE>
</RULE_LIST>

Based on this sample adua.xrd file:

If the RULE is UseGDC:

If the RULE is UseGWC (for most desktop browsers):