WebSphere Commerce foundation tag library
The WebSphere Commerce foundation tag library is a collection of custom tags provided to you to support the authoring of WebSphere Commerce JSP files.
The WebSphere Commerce foundation tag library, wcf, consists of the following tags:
- Tag: contextData
The contextData tag sets a business context data value for a WebSphere Commerce service request. Business context data values specified with the contextData tag are appended to any business context values associated with the current session. The new business context values are in effect only for the current WebSphere Commerce service request. They do not persist into the session. Use this tag only as a sub-tag of the getData tag.
- Tag: declareService
The declareService tag adds client-side support for invoking a service request. The ID is used to register the specified service so it can be invoked with the wc.service.invoke(serviceId, parameters) function. The parameters parameter is an object map that will be passed as parameters to the service URL.
- Tag: declareRenderContext
The declareRenderContext tag adds the client-side render context support to the current page. The ID passed to this tag is used to identify the render context. If this tag has already been called for this request and ID, then it will do nothing.
- Tag: declareRefreshController
The declareRefreshController tag declares a refresh area controller. The refresh area controller provides the JavaScript logic that listens to changes in the render context and the model. It refreshes the refresh areas registered to the controller. Refresh areas are declared using the wc.widget.RefreshArea widget and by specifying the ID of a declared refresh controller for the controllerId attribute.
- Tag: defineObjects
The defineObjects tag defines the objects in the JSP page:
- Tag: getData
The getData tag retrieves data objects from a WebSphere Commerce service. The param tag and the contextData are sub-tags of the getData tag.
- Tag: json
The json tag converts the specified Java object to JavaScript Object Notation (JSON).
- Tag: metadata
The metadata tag retrieves metadata information that may be returned in response to a Get BOD request that is used for authoring, for example, workspaces in the Management Center. The param tag and the contextData are sub-tags of the getData tag.
- Tag: param
The param tag adds a named parameter value to the parent tag. The param tag can be specified as a sub-tag of getData.
- Tag: wcf:url
The wcf:url tag builds a URL and applies the appropriate WebSphere Commerce supported rewriting rules.
Related concepts
Web enablement for the client library
Related reference