|
|
|
|
|
- Overview
- Enabling the framework V2
- How to?
- When should I use (or not) the new framework?
Browser code (WLanguage): Framework 2
Starting with version 22, WEBDEV offers a new WLanguage framework for browser code. This new version allows for more server-focused coding, and largely complements the functionalities of browser code. Enabling the framework V2 How to? The new WLanguage framework is enabled globally for a project: - Open the project description window. To do so, go to the "Project" tab, "Project" group, and click "Description".
- On the "Advanced" tab, for the "WLanguage browser" option, select "Version 2".
- Validate.
Important: To use version 2 of the WLanguage framework, pages must be generated using HTML 5. To define the generation standard: - Open the project description window.
- In the "Advanced" tab:
- Select the "HTML 5" standard.
- In the generation options ("..." button), check "Force Internet Explorer in HTML5 mode in intranet (X-UA-compatible)".
If one of these conditions is not fulfilled, the "WLanguage browser" option will be grayed and forced on "Version 1".
When should I use (or not) the new framework? The new browser framework proposes a behavior close to WLanguage server. Therefore, some behaviors of browser code are modified, especially the method for passing parameters to the procedures. It is not recommended to modify the generation mode of a project in production to avoid modifying the code behavior and to avoid regressions. To use the new framework version in an existing project (to benefit from the new features), we advise you to run full tests of different project codes to make sure that the change of framework does not trigger any regression. When creating a new project, it may be interesting to use the framework in version 2 in order to benefit from the programming comfort of new features.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|