cancel
Showing results for 
Search instead for 
Did you mean: 

hybris 5 Developer Training Trails - Part II - Commerce

Former Member
0 Kudos

I am currently going through the hybris 5 Developer Training Trails - Part II - Commerce (https://wiki.hybris.com/display/tr52/hybris+5+Developer+Training+Trails+-+Part+II+-+Commerce) and wanted to know how the data is getting populated when we access

http://hybris.local:9001/store/

I can see that the HomepageController is getting called and returning "pages/layout/landingLayout2Page".

Could an expert please explain how the page is getting populated, ie., what actually happens in the background (what controllers, facades, and pages are getting called). It'll be quite helpful to get an explanation of the technical flow and the approach Hybris adopts in displaying the final page.

Many thanks in advance!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

In the article on WCMS Integration (https://wiki.hybris.com/pages/viewpage.action?spaceKey=accdoc&title=WCMS+Integration), it mentions about CMSPageInterceptor where you are populating the various model attributes required by the view. I searched the codebase but couldn't find the mentioned Interceptor. Can anybody guide me where I can see this so that I can debug and see what values are getting populated for the various model attributes? Much appreciated!

Former Member
0 Kudos

Thanks for the reply Romain. I'll go through the link and update you if I have any queries

Former Member
0 Kudos

Hello,

You may find a very heplful schema on the WCMS integration here. Hope this helps. https://wiki.hybris.com/pages/viewpage.action?spaceKey=accdoc&title=WCMS+Integration

Former Member
0 Kudos

Could anybody please help me with my query or direct me to the right resource in understanding the concepts? Thanks!

0 Kudos

you can go through getViewForPage(model) in HomePageController. there u can see various layers the call is passing through to fetch the page