Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

regarding using two different component on page

Avatar

Level 1

Hi,

i have a situation with SPA . i was trying to use HTL component and Non-HTL component on the sampage. Actually can we do that .

3 Replies

Avatar

Community Advisor

Yes, we can use the HTL and JSP component in same page.

make sure to check the parsys, which you have included is a JSP or HTL.

For both, you will have to go in design mode and add the component.

~ Prince

Avatar

Level 1

that ok , but th ething is when the Singl epage application comes in to picture i am using react to creat react component which i can't us in page.

Avatar

Community Advisor

In single page application, are you storing or generating the react js code in clientlib using front-end maven plugin? if not then I am not sure how you will use other components.

If I am not wrong, like in SPA the HTML generates from react developers and whatever they give you, you paste it to index.html.

if this is the case, using parsys is difficult. if not, you can use parsys in your spa page and then drag n drop the components.

~ Prince