April 10, 2020
Estimated Post Reading Time ~

cq:defineObject

The Day provided global.jsp declares the Sling, CQ and JSTL taglibs and exposes the regularly used scripting objects defined by the

<cq:defineObjects /> tag
The above tag exposes the following regularly used, scripting objects which can be referenced by the developer. It also exposes the objects defined by the <sling:defineObjects> tag.

1. componentContext
Package: com.day.cq.wcm.api.components
2. public interface ComponentContext
The current component context object of the request.
3. component
Package: com.day.cq.wcm.api.components.Component interface
The current cQ5 component object of the current resource
4. currentDesign
Package: com.day.cq.wcm.api.designer.Design interface
The current design object of the current page
5. currentPage
Package: com.day.cq.wcm.api.Page interface
The current CQ WCM page object.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.