cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the specified component when back to fronted

Former Member
0 Kudos

Hi guys,

I'm confused about the component after request back to frontend,How to add the jsp to the jsp based on component.Such as followed code: <cms:pageSlot position="TopContent" var="feature" element="div" class="accountTopContentSlot"> <cms:component component="${feature}" element="div" class="clearfix" /> how to understand this code? Thanks a lot!

Former Member
0 Kudos

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

That is done by CMSComponentTag.java

All the components have her own jsp and her own controller, in the case that the component is not having a controller is using the model object of hybris.

So is retrieving all the components that are in the position "TopContent" (in your PageModel), looping in each component and setting that component in $feature.

and Is rendering the component.

Best,

Juanma

Answers (0)