Date : 26 February 2007
EPC802 delivers enhancements and corrections primarily to the shipped set of LANSA for the Web weblets.
EPC802 is the first stage in a series of updates that improve the performance of LANSA's Web Application Modules (WAMs).
A core set of weblets, including the grid, standard layouts and default visualizations, has been revamped or replaced. The performance of all of these new or amended weblets has been greatly improved.
WARNING!EPC 802 introduces improvements in the way CSS stylesheets and JavaScript files are handled. If your WAM layouts use the LANSA supplied std_style and std_script weblets, then you should experience no problems after installing this EPC. If you have created your own style and script weblets that do not call the standard weblets, then you may have problems after installing this EPC. In this case, you should make the modifications detailed below before applying this EPC. ScriptStd_script.xsl has changed in a number of ways. It loads a new JavaScript file (std_script_v2.js) as well as the original (std_script.js) and it generates a number of JavaScript variables that are used by other weblets to improve performance.If your custom script weblet currently calls std_script, then you will get this new functionality automatically. If it doesn’t, then it is likely that you have implemented the original std_script functionality yourself. We recommend that you remove this code and replace it with a call to the script template in std_script: <xsl:import href="std_script.xsl" /> <xsl:template name="my_script"> <xsl:call-template name="script"> <xsl:with-param name="javascript_files"/> <xsl:with-param name="trap_script_errors"/> </xsl:call-template> <!-- Custom script functionality here --> </xsl:template> Notice the new javascript_files property. If the purpose of your custom script weblet is to load some extra JavaScript files, you may be able to use this new property and avoid the need for the custom weblet. See the documentation for more details. Be careful with the template name. If you named the template of your custom weblet “script”, then you will need to rename it to avoid an infinite loop. You will then need to update your layouts to make sure they call the new name (otherwise they will call “script” in std_script.xsl bypassing your custom code). StyleThe std_style.css/std_style_base.css mechanism used prior to EPC802 is no longer used. This mechanism allowed for localization by placing all the required styles in std_style_base.css and locale specific styles in std_style.css. Std_style.css also contained an @import instruction to load std_style_base.css. Locale specific versions of std_style.css (such as std_style_jpn.css) could be created, each one importing std_style_base.css and then adding it’s locale specific styles.The new mechanism consists of a single std_style.css file which the style weblet always loads first and a locale specific overlay (std_style_jpn.css) which the style weblet then loads is required. In other words, instead of linking CSS files together with @import instructions, the style weblet takes care of loading the CSS files required in the right order. The new std_style_v2.xsl weblet extends this mechanism further providing a number of properties for specifying extra CSS files to load. The std_style weblet is deprecated but has been modified internally to map the old properties into the new mechanism, ensuring backwards compatibility. If you have created your own CSS file and supplied it to the std_style weblet via the relative_css_link_filename property, then your application should continue to work without problem after installing this EPC. If you have created a custom style weblet that does not call std_style.xsl, then you may experience problems after installing this EPC. As with the script weblet, it is likely that you have implemented the original std_style functionality yourself. We recommend that you remove this code and replace it with a call to the style template in std_style_v2.xsl: <xsl:template name="my_style"> <xsl:call-template name="style"> <xsl:param name="theme_css_filename"/> <xsl:param name="css_files"/> </xsl:call-template> <!-- Custom style functionality here --> </xsl:template> Be careful with the template name. If you named the template of your custom weblet “style” then you will need to rename it to avoid an infinite loop. You will then need to update your layouts to make sure they call the new name (otherwise they will call “style” in std_style_v2.xsl bypassing your custom code). |
| Product | Visual LANSA and LANSA for iSeries | ||
|---|---|---|---|
| Version | 11.3 | ||
| Pre-Requisite Details | EPC800 | ||
| Related Products | LANSA for the Web | ||
| Full Distribution In | Next Cumulative EPC or next version | ||
| Special Notes | Requires EPC801 for WAM development and IIS web serving.
All Version 11.3 Visual LANSA EPCs include updates that must be applied to Windows and iSeries systems (Independent Visual LANSA development environments only require the Windows updates). Failure to upgrade both sides of a development environment will render the Host Monitor and Super Server applications inoperable. Attempting to use the Host Monitor and Super Server applications without having applied the EPC to both sides of a development environment will generate an EPC mismatch error. Make a full backup of your LANSA environment on each platform to which this EPC will be applied. |
||
| Compatibility Notes | To avoid object versioning issues on any target LANSA runtime environment after applying this EPC to your LANSA development environment (Windows and iSeries), you must also apply this EPC to the target LANSA runtime environment before deploying any objects built and compiled at this EPC level. This ensures that all required runtime routines are present in the target runtime environment to support any new or altered facilities introduced by the EPC. Failure to apply this EPC to such target environments before deploying any objects built and compiled at this EPC level will produce unpredictable results at runtime. | ||
| iSeries Specific Special Notes | The iSeries instructions are expedited procedures that assume a sound
knowledge of OS/400.
You should use a user profile that is QSECOFR, part of the QSECOFR group, or, has *ALLOBJ and *SECADM special authorities. You must end the web server and run the LANSA for the Web cleanup program before applying this EPC. You must end the Listener and Host Monitor if active. You must end the LANSA Integrator server if it has been used with the LANSA system to be updated. |
||
| User Actions | Import the standard weblets into your Web enabled RDMLX partitions:
If you will be serving very large lists using LANSA for the Web, you need to set appropriate timeouts accordingly:
|
||
| Document Updates | Updates to these guides are provided:
|
||
| Hotfixes |
The following Hotfixes will be replaced by this EPC:
|
EPC802 includes software to be installed on an iSeries machine and on a Windows machine. These instructions describe the installation and use of all delivered items.
| Yes | LANSA for iSeries |
| Yes | iSeries Web Server (multi-tier) |
| Yes | Visual LANSA |
Import the standard weblets into your RDMLX partitions from the save file found in the LANSA program library.
The import job TSPDEF will be submitted by this EPC load
To apply EPC802 on the Web Server tier of your LANSA for the Web system, follow these steps:
© 2007 LANSA