WEB_COMPONENT_DIRECTORY

The WEB_COMPONENT_DIRECTORY element specifies the path where Web components for an application are located.

Starting with Genero 3.00, this element added to the URL, builds the path used to find a Web component. It defines paths from where Web components are served via the GAS. The WEB_COMPONENT_DIRECTORY configuration only applies to Genero Desktop Client (GDC) applications delivered via GAS, and Genero Web Client for JavaScript (GWC-JS).

Note: For your legacy GWC-HTML5 applications, the WEB_COMPONENT_DIRECTORY configuration entry is ignored. Web components in this case are still required to be located in FGLASDIR/web/components as before. For more details on web component usage, see the Genero Business Development Language User Guide.

Syntax

<WEB_COMPONENT_DIRECTORY>path;path</WEB_COMPONENT_DIRECTORY>

It allows for multiple paths to be specified, the separator used between resource paths is a semi-colon, ';'.

Usage example

   <WEB_APPLICATION_EXECUTION_COMPONENT Id="cpn.wa.execution.local">
     ...
      <DELEGATE service="MyGroup/MyDelegateService"> ... </DELEGATE>
      <WEB_COMPONENT_DIRECTORY>$(application.path)/webcomponents;
             $(my.web.components)/static-files/webcomponents</WEB_COMPONENT_DIRECTORY>
   </WEB_APPLICATION_EXECUTION_COMPONENT>
Important: Element order. If the WEB_COMPONENT_DIRECTORY element is present, it must be set in the correct order within the parent element, see EXECUTION (for an application), EXECUTION (for a service), or WEB_APPLICATION_EXECUTION_COMPONENT.

Child elements

There are no child elements.

Parent elements

This element is a child of one of the following elements: EXECUTION (for an application), EXECUTION (for a service), WEB_APPLICATION_EXECUTION_COMPONENT