on 02-10-2017 7:45 AM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.