Doctype is not rendered at the top of the page after web app is converted to portlets
I had a web application (JSFv1.2,RichFacesv3.3.3) and now I am converting it in portlets. The problem is that the doctype tag is not being added at the top of the Page which is causing lots of display issues to the page as we know that in that case browsers change their modes to compatibility mode.
Actually for portlets it adds the title of the portlet at the start of the rendered page and then for richfaces, some javascript libraries are automatically added at the top and my page is added inside of an automatically created div... named as "pagename_default". and in that div I have all of my code including the doctype which i had added. Remember I am talking about the rendered html i.e. the html after the page is rendered...

I have worked alot to find a solution on many sites. but still unsuccessful.
Doctype is not rendered at the top of the page after web app is converted to portlets
===

I had a web application (JSFv1.2,RichFacesv3.3.3) and now I am converting it in portlets. The problem is that the doctype tag is not being added at the top of the Page which is causing lots of display issues to the page as we know that in that case browsers change their modes to compatibility mode.
Actually for portlets it adds the title of the portlet at the start of the rendered page and then for richfaces, some javascript libraries are automatically added at the top and my page is added inside of an automatically created div... named as "pagename_default". and in that div I have all of my code including the doctype which i had added. Remember I am talking about the rendered html i.e. the html after the page is rendered...

I have worked alot to find a solution on many sites. but still unsuccessful.