Internet Technologies:cxp

CXP page execution Foundation

The primary task of the cxc-builder transpilation process is to generate the prg source code of a Xbase++ class for each CXP file. In fact, all HTML markup defined in your view is injected into the :render() method of the generated Xbase++ class. The same is true for your Xbase++ code. The resulting Xbase++ class is derived from the CxpAbstractPage class.

Whenever a request for a CXP page is received by the cxp-worker, the associated DLL is loaded, and an instance of the page class is created. The following outlines the order of execution of the methods of the generated page class.

1 :load() is executed right after the DLL was loaded, and before the first instance of the page class is created.

2 :render() is executed for creating the content of the view.

3 :unload() is executed before the cxp-worker process shuts down. Repeated page requests do not lead to a new load/unload cycle.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.