request attributes | Community
Skip to main content
December 30, 2015
Solved

request attributes

  • December 30, 2015
  • 4 replies
  • 1382 views

Hi I am new to Adobe AEM.

 

I am going through carousel.jsp 's code. there I have seen (List list = (List)request.getAttribute("list");)

where this "list" attribute has been set? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

The carousel component inherits the OOTB list component, as you can see in the properties of carousel component

      
sling:resourceSuperType
String
foundation/components/list

In line 37 carousel.jsp, ootb carousel is loading init.jsp, that is actually being loaded from /libs/foundation/components/list/init.jsp and which contains the code for set attribute

List list = new List(slingRequest, new PageFilter()); request.setAttribute("list", list);

4 replies

Jitendra_S_Toma
December 30, 2015

Actually, carousel component inherits list component and that's where the list is being set in the request object.

--

Jitendra

krishh_187 wrote...

Hi I am new to Adobe AEM.

 

I am going through carousel.jsp 's code. there I have seen (List list = (List)request.getAttribute("list");)

where this "list" attribute has been set? 

 

edubey
edubeyAccepted solution
December 30, 2015

The carousel component inherits the OOTB list component, as you can see in the properties of carousel component

      
sling:resourceSuperType
String
foundation/components/list

In line 37 carousel.jsp, ootb carousel is loading init.jsp, that is actually being loaded from /libs/foundation/components/list/init.jsp and which contains the code for set attribute

List list = new List(slingRequest, new PageFilter()); request.setAttribute("list", list);
December 30, 2015

Thanks a lot Jitender :)

December 30, 2015

Thank you very much :)