Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

regarding using two different component on page

depa0308
Level 1
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
Prince_Shivhare
Community Advisor
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

depa0308
Level 1
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.

Prince_Shivhare
Community Advisor
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