Expand my Community achievements bar.

SOLVED

Using AEM OOTB components along with SPA archetype project

Avatar

Level 2

We are currently using SPA(AEM+react application) in 6.4.3, we had a requirement to use the OOTB/Custom non-spa components in the project to the existing SPA maven archetype, idea is to create a page with OOTB or custom non-spa component, what should we do to achieve this functionality ? Do we need to create a new template which support that feature ? that page will be served from AEM publisher not on react app. 

Thanks in advance for your inputs! Any input is appreciated !

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi @Sai_Krishna_1404 ,

I too faced same issue. Inside SPA Page if we need to bring in oob Core AEM components then only hack i found is you need to create a seperate page component/Template type and a new page from that and use the core component inside. As per my understanding you can mix and use spa and non spa inside the same page components. Each need to be in theor own page component i mean non spa should extend from oob page comp similarly spa should extend from spa page ootb component.

 

Regards

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Hi @Sai_Krishna_1404 ,

I too faced same issue. Inside SPA Page if we need to bring in oob Core AEM components then only hack i found is you need to create a seperate page component/Template type and a new page from that and use the core component inside. As per my understanding you can mix and use spa and non spa inside the same page components. Each need to be in theor own page component i mean non spa should extend from oob page comp similarly spa should extend from spa page ootb component.

 

Regards