If you have been working with the Genero Web Client prior to the release of GWC 2.10, you will have already done some configuration and possibly customization to deliver your Genero applications as Web applications using the initial built-in rendering engine. While that rendering engine will continue to render your applications, all new development and advances will be focused on the snippet-based rendering engine introduced with GWC 2.10. It is recommended that you utilize this new rendering engine.
To deploy your application using the legacy built-in rendering engine, you need to ensure the OUTPUT_DRIVER is set to GWC.
To run a specific application with the legacy built-in rendering engine when the application is mapped to run with AJAX mode, you would modify the application's configuration file to use the GWC output driver instead of the GWC2 output driver.
In the following discussion, an application's configuration is updated, causing the application to be rendered using the legacy built-in rendering engine.The original Edit.xcf:
01
<?xml version="1.0" encoding="UTF-8"?>02
<APPLICATION Parent="defaultgwc">03
<EXECUTION>04
<PATH>$(res.path.fgldir.demo)/Widgets</PATH>05
</EXECUTION>06
</APPLICATION>
Examine the configuration for the parent application 'defaultgwc', and you see that both the rendering and theme components are set to use GWC2 output driver and snippet-based themes.
From the as.xcf (the GAS configuration file provided in GWC installation package):
01
...02
<!--This is the default application for GWC-->03
<APPLICATION Id="defaultgwc" Parent="defaultwa" Abstract="TRUE">04
<TIMEOUT Using="cpn.gwc.timeout.set1"/>05
<PICTURE Using="cpn.gwc.picture"/>06
<OUTPUT Rule="UseGWC">07
<MAP Id="DUA_Symbol-WC" Allowed="TRUE">08
<RENDERING Using="cpn.rendering.xslt"/>09
<THEME Using="cpn.theme.default.gwc">10
<TEMPLATE Id="_default">$(res.theme.symbol-wc.stylesheet)</TEMPLATE>11
</THEME>12
</MAP>13
<MAP Id="DUA_GWC" Allowed="TRUE">14
<RENDERING Using="cpn.rendering.gwc"/>15
<THEME Using="cpn.theme.default.gwc"/>16
</MAP>17
<MAP Id="DUA_AJAX" Allowed="TRUE">18
<RENDERING Using="cpn.rendering.gwc2" />19
<THEME Using="cpn.theme.ajax.gwc" />20
</MAP>21
<MAP Id="DUA_PAGE" Allowed="TRUE">22
<RENDERING Using="cpn.rendering.gwc2" />23
<THEME Using="cpn.theme.page.gwc" />24
</MAP>25
<MAP Id="DUA_PDA" Allowed="TRUE">26
<RENDERING Using="cpn.rendering.gwc2" />27
<THEME Using="cpn.theme.pda.gwc" />28
</MAP>29
</OUTPUT>30
</APPLICATION>3
1
...
MAP
element, the rendering and theme for the AJAX mode is
explicitly specified for this abstract application. (Lines 17 - 20)Modify the application's configuration to explicitly specify the legacy built-in rendering engine, overriding the GWC2 and snippet-based theme settings inherited from the 'defaultgwc' application.
Modified Edit.xcf:
01
<?xml version="1.0" encoding="UTF-8"?>02
<APPLICATION Parent="defaultgwc">03
<EXECUTION>04
<PATH>$(res.path.fgldir.demo)/Widgets</PATH>05
</EXECUTION>06
<OUTPUT Rule="UseGWC">07
<MAP Id="DUA_AJAX" Allowed="TRUE">08
<RENDERING Using="cpn.rendering.gwc"/>09
<THEME Using="cpn.theme.default.gwc"/>10
</MAP>11
</OUTPUT>12
</APPLICATION>
OUTPUT
element to contain a
MAP
element. (Lines 06 - 11)MAP
element, the rendering and theme for the AJAX mode is explicitly
specified for this application. (Lines 07 - 10)To take full advantage of the snippet-based rendering engine, you must follow the procedures outlined in this manual, regardless of whether or not you have previously deployed your application using the pre-2.10 GWC.
If you have previously deployed the application with the pre-2.10 GWC, ensure you revisit the following: