Taglibs - 4.2

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:

<%@taglib prefix="slice" uri="http://cognifide.com/jsp/slice" %>

lookup

Instantiates and sets object of specified type using current resource. It is used for obtaining business data model associated with the component.

Attribute
Description
Required?
varname of variable where the object will be stored. It can later be used through JSTL(tick)
typeclass of object to be created(tick)
appNameapplication 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.(error)