Highlighted

regarding using two different component on page

Avatar

Avatar

depa0308

Avatar

depa0308

depa0308

02-05-2019

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 .

Replies

Highlighted

Avatar

Avatar

Prince_Shivhare

Avatar

Prince_Shivhare

Prince_Shivhare

02-05-2019

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

Highlighted

Avatar

Avatar

depa0308

Avatar

depa0308

depa0308

02-05-2019

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.

Highlighted

Avatar

Avatar

Prince_Shivhare

Avatar

Prince_Shivhare

Prince_Shivhare

03-05-2019

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