Slice
Slice taglib : consists of only one tag which is purposed for use in JSP scripts. If you use Sightly you can safely skip this part of documentation.
If you'd like to use the Slice taglib please include the following in your JSP script:
Code Block |
---|
<%@taglib prefix="slice" uri="http://cognifide.com/jsp/slice" %> |
lookup
Creates Instantiates and sets object of requested specified type using current resource. It is used for obtaining business data model associated with the component.
Attribute | Description | Required? |
---|---|---|
var | name of variable where the object will be stored. It can later be used through JSTL | |
type | class of object to be created | |
appName | application name - name under which the injector has been registered. If not defined it is automatically computed based on component resource type. Since Slice 3.2 the name of the app (if not defined) is being found only once per request and then cached. If an application uses various app names at the same time, the appName attribute must be explicitly defined so that a proper app name is selected. |
CQ
Info | ||
---|---|---|
| ||
Since version 3.1.0 the CQ related modules have been separated. If you would like to add them to your project's dependencies and use CQ Taglibs, please see Slice CQ Addons. |
Validation
Validation taglib: http://cognifide.com/jsp/slice/validation
validate
...