Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.1 in Double doctype, head and body tag
Hi Team,
We have discovered that some of our pages have duplicate tags and scripts. Some of our portlet, create their own doctype,
Suspect it has to do with the portlet Has anyone had similar problems?
Versions
Liferay 7.1 ce Ga3 (bundled with tomcat-9.0.10),
Liferay runs on windows 10 server with Java jdk1.8.0_172,
it is showing create requisition tab 2 times repeatedly why it showing i have attached home jsp please check it ,if i did any mistake update me
Help out me
Thank you
Ram
We have discovered that some of our pages have duplicate tags and scripts. Some of our portlet, create their own doctype,
Suspect it has to do with the portlet Has anyone had similar problems?
Versions
Liferay 7.1 ce Ga3 (bundled with tomcat-9.0.10),
Liferay runs on windows 10 server with Java jdk1.8.0_172,
it is showing create requisition tab 2 times repeatedly why it showing i have attached home jsp please check it ,if i did any mistake update me
Help out me
Thank you
Ram
Ramalingaiah. DIf that home.jsp is what renders as your portlet's content (not within an iframe) then indeed: You have duplicate tags, namely <html>, <head> and <body>.
We have discovered that some of our pages have duplicate tags and scripts. Some of our portlet, create their own doctype,
Suspect it has to do with the portlet Has anyone had similar problems?
A portlet always renders as a part of a full document, so including those tags in the portlet body is just plain wrong. If you host the content in an iframe, that'd be different, but I'm assuming that you're not doing that (otherwise you would have mentioned it, not a portlet).
Remove the top level tags from the portlet's jsp. Use proper mechanisms to include portlet-specific JS and CSS (as you don't post your portlet's code, it's hard to say how to do it. Generically, there's a declaration in liferay-portlet.xml, which has analog properties for OSGi-DS-based portlets.
Hi Olaf Kock,
thank you for replying ,now it is working fine .
Regards
Ram
thank you for replying ,now it is working fine .
Regards
Ram