Commerce Composer JSTL tags
The Commerce Composer framework uses a set of custom JavaServer Pages Standard Tag Library (JSTL) tags provided with WebSphere Commerce. This WebSphere Commerce Page Layout Tag Library is used to support the authoring of JSP files for use with the Commerce Composer tool and framework. The Commerce Composer JSTL tags are included within the wcpgl tag library. To use these tags, we must first import the tag library. We can import this library by including the following code in the top of your JSP file<%@taglib uri="http://commerce.ibm.com/pagelayout" prefix="wcpgl">The Commerce Composer JSTL tags consist of the following tags:
- Tag: widgetImport
The wcpgl:widgetImport tag allows one or more widgets to be imported at a time. The widgets can be imported based on the slot ID parameter or the widget identifier parameter.- Tag: jsInclude
The Commerce Composer framework uses this JavaScript Include Source tag to generate the source code to include all of the JavaScript files associated with widgets in a layout. The framework uses the tag to loop through all of the widgets in a layout to identify the JavaScript files associated with the widgets. The framework ensures that each JavaScript file is included only once in a page to avoid issues with the JavaScript code.- Tag: pageLayoutCache
The wcpgl:pageLayoutCache tag allows page layout JSP files to dynamically generate and set dependency IDs. These IDs can be used so that a layout JSP file can be invalidated when the page layout assignment for the layout JSP file changes.- Tag: pageLayoutWidgetCache
The wcpgl:pageLayoutWidgetCache tag sets the do-not-consume attribute value of the widget cache entry to false when a dependency ID with the name ignoreDoNotConsume is found in the cache definition.
Related concepts
Developing Commerce Composer assets
Commerce Composer overview