Thursday 15 December 2011

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
            public  interface ComponentContext
          The current component context object of the request.
   2. component

        Package: com.day.cq.wcm.api.components.Component    interface
        The current cQ5 component object of the current resource

   3. currentDesign
  
        Package: com.day.cq.wcm.api.designer.Design   interface
        The current design object of the current page

   4. currentPage
   
        Package: com.day.cq.wcm.api.Page  interface
        The current CQ WCM page object.


1 comment:

  1. Really Thanks For Posting Such a Useful Content. Really Thanks For Sharing Such an Informative Post.
    Mulesoft Certification Training

    ReplyDelete