What do you need to configure a Genero Web Client application?
To add an application for Genero Web Client for JavaScript (GWC-JS), you need to specify:
- An application Id (a unique name for this APPLICATION element)
Note: Applications defined in the GAS configuration file require an
Id attribute. For external configuration files, if the application and the
configuration file share the same name, there is no need to specify the Id
attribute.
- The parent application from which to inherit configuration details
(defaultgwc in this example)
- The path to the compiled application files
- The name of the application to launch
- The access control allowing access (optional)
- The customization project directory to use for the application user interface look and
feel (if using a customized project)
Example: simple application for GWC-JS Web client
<APPLICATION Id="gwc-demo" Parent="defaultgwc">
<EXECUTION>
<PATH>$(res.path.fgldir.demo)</PATH>
<MODULE>demo.42r</MODULE>
</EXECUTION>
</APPLICATION>
- The application inherits the configuration settings of its parent
("defaultgwc" in this example).
- The path used in this example is a RESOURCE; you could also use the absolute path name
leading to your application files.
- The MODULE contains the name of the application to launch.
Example: gwc-demo-external.xcf
The main differences between this example and the example shown in
Example: simple application for GWC-JS Web client
are the lack of the
Id attribute and the reference to the XML schema.
<APPLICATION Parent="defaultgwc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/3.00/cfextwa.xsd">
<EXECUTION>
<PATH>$(res.path.fgldir.demo)</PATH>
<MODULE>demo.42r</MODULE>
<ACCESS_CONTROL>
<ALLOW_FROM>$(res.access.control)</ALLOW_FROM>
</ACCESS_CONTROL>
</EXECUTION>
<UA_OUTPUT>
<PROXY>$(res.uaproxy.cmd)</PROXY>
<PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH>
<GWC-JS>gwc-dev</GWC-JS>
<TIMEOUT> Using="cpn.wa.timeout"</TIMEOUT>
</UA_OUTPUT>
</APPLICATION>
- The ALLOW_FROM element specifies from
what hosts access is allowed, the example here is defined in a RESOURCE.
- The GWC-JS configuration element,
specifies the customization project directory you used to provide the application
look-and-feel. See Customizing GWC-JS applications.