Skip to main content

CSP Page Lifecycle

There are three main phases in the lifecycle of a CSP page:

  1. Design Time — The developer creates a mark-up file, with extension .csp, using HTML mark-up and CSP elements like page directives, Caché data expressions, CSP tags, and CSP scripts. Ultimately, the CSP compiler translates this mark-up file into a Caché class. Alternatively, the developer codes the Caché class directly.

  2. Compile Time — The CSP Compiler first translates the mark-up file, created at Design Time, into a Caché class. During translation, the CSP Compiler places CSP elements into the resulting class according to their types and their locations in the .csp file. The CSP Compiler then compiles the class.

  3. Execution Time — The Caché Server creates an instance of the class created at Compile Time and invokes its onPage method. CSP page classes inherit onPage from %CSP.PageOpens in a new tab.

FeedbackOpens in a new tab