Skip to main content
Level 4
Dec 30, 2015 10:18 AM UTC
Solved

request attributes

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.
edubey
edubeyAccepted solution
Level 10
Dec 30, 2015 11:16 AM UTC

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
Level 10
Dec 30, 2015 10:59 AM UTC

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? 

 

Translate
edubey
edubeyAccepted solution
Level 10
Dec 30, 2015 11:16 AM UTC

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);
Translate
Level 4
Dec 30, 2015 3:20 PM UTC

Thanks a lot Jitender :)

Translate
Level 4
Dec 30, 2015 3:21 PM UTC

Thank you very much :)

Translate