I am not able to include . Whenever I load my portlet for the first time it doesn't work but if I refresh the same page then it starts working fine. I don't know what the issue is. Please Help.
I am not able to include http://maps.googleapis./maps/api/js?sensor=false
. Whenever I load my portlet for the first time it doesn't work but if I refresh the same page then it starts working fine. I don't know what the issue is. Please Help.
1 Answer
Reset to default 3One of the clean ways to include js file in a portlet, independent of the portal server is to configure in portlet deployment descriptor file as below. For liferay, it would be liferay-portlet.xml.
<portlet>
<portlet-name>MySamplePortlet</portlet-name>
<header-portlet-javascript>http://maps.googleapis./maps/api/js?sensor=false</header-portlet-javascript>
</portlet>
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745422518a4627028.html
评论列表(0条)